c# - Gridview always return a single row -


i using below code display records in gridview specific filter. if parent less 2 means records display in grid. return single row last datatable dt having more 5 rows.how can solve error

try {     dataview dv = new dataview();     dv = dt.defaultview;     dv.rowfilter = "fld_parent=0";     if (dv.count < 2)     {         dv_pack.visible = true;         dt.defaultview.sort = "fld_type";         grd_pack.datasource = dt;         grd_pack.databind();      }  }  catch (exception ex)  {      throw;  } 


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -