Hi,
How to get total no.of rows in the dataset or datagrid. i tried as follows...
RcdCount = dsPeople.Tables("People").Rows.Count
Not working with this. Any ideas?
Thank You
Printable View
Hi,
How to get total no.of rows in the dataset or datagrid. i tried as follows...
RcdCount = dsPeople.Tables("People").Rows.Count
Not working with this. Any ideas?
Thank You
Your code seems right.
What do you mean by "not working"?
try this
Code:RcdCount = dsPeople.Tables("People").Rows.Count.toString
Debug the code and use the the Breakpoint when u fill the dataset with data. and write immediately ds.Tables(0).Rows.count in the immediate Window. Also Check the name and Data of ur table.