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
Post a Comment