The DataSet can be filled either from a data source or dynamically. The DataSet contains rows, columns,primary keys, constraints, and relations with other DataTable objects. We can get the number of rows from in a Table inside a Dataset by using its Rows.Count property.
vb.net ds.Tables(0).Rows.Count
C# ds.Tables[0].Rows.Count
The following ASP.NET program shows how to find the number of rows in table inside a Dataset.
Default.aspx
Untitled Page
Click the following links to see full source code
C# Source Code
VB.NET Source Code
ASP.NET Dataset - Related Contents
Advertisement
ASP.NET Related Topics