wtbonnell Posted October 7, 2003 Posted October 7, 2003 How do you dynamically count the number of rows in a table using VB.NET? Any ideas? Quote
*Experts* jfackler Posted October 7, 2003 *Experts* Posted October 7, 2003 Do a .Select on the table. What you get is an array of datarows....just check its .Length Dim areom As DataRow() Dim numberofrows as Integer areom = Me.dataset1.Tables("TableName").Select() numberofrows = areom.Length Jon Quote
Moderators Robby Posted October 7, 2003 Moderators Posted October 7, 2003 Dataview use dv.Count Dataset use ds.Tables(0).Rows.Count DataTable use dt.Rows.Count Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.