Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Datagrid
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00736953
Message ID:
00736973
Views:
7
Hi Randy,

There is no direct way to get this information. The best way is to get the count of the DataSource used to populate the DataGrid. If you bind to a DataTable, here is some sample code:
Dim rowcnt as Integer = ds.Tables("MyDataTable").Rows.Count
Have a Happy New Year!

>I don't know why I can't find this - but where is the rowcount property to determine how many records are in a datagrid? TIA.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform