title: How to hide particular data row in a datatable without deleting it?
body: <p>I want to hide a data row without deleting it in c# or vb.net. Please help me with this.
  I want to hide a data row without deleting it in c# or vb.net. </p>
  
  <pre class="lang-vb prettyprint-override"><code>ResultSelection.Checked = False ' Checkbox
  Dim Dt As DataTable
  Dim dr as datarow
  Private SBind As BindingSource = New BindingSource()
  With Dt
       .Columns.Add(" Name", GetType(String))
       .Columns.Add("Age" , GetType(integer))
       .Columns.Add("Marks" , GetType(integer))
  
  dr(0) = ( "Mark",19,99)
  dr(1) =  ( "Rahul",20,35)
  dr(2) =  ( "Steve",19,50)
  
  SBind.DataSource = Dt
  DatargridView.DataSource = SBind
  
  if ResultSelection.Checked = False then
      "entire row dr(2) should not be visible
  else
      "entire data table should be visible along with dr(2)
  end if
  </code></pre>