I have a GridView with paging. When I try to count gridview row with gridview.rows.count, It gives me row count for current page only.
How can I get total rows of G
If you have a gridview which will be filled using a datatable or dataset then count the datatable or dataset (ds.table(0).rows.count) For example
gridview
datatable
dataset
ds.table(0).rows.count
For cnt1 = 0 To Total_batchRecords - 1 dgchgsdtl1.Rows.Item(cnt1).FindControl("ControlName"), Label) Next