How to hide a row in a grid based upon condition

Hi All,
I have a scenario, say, for example, I have 20 rows in the paging grid, based on a condition I need to hide a few of the rows in a Grid.

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data