SiteMap  | About    

ASP.NET Dataset row count

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.




The following ASP.NET program shows how to find the number of rows in table inside a Dataset.



	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
	<html xmlns="">
	<head id="Head1" runat="server">
		<title>Untitled Page</title>
		<form id="form1" runat="server">
			<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
			<br />
			<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>

Click the following links to see full source code

C# Source Code
VB.NET Source Code
default.aspx.vb (C) 2018    Founded by raps mk
All Rights Reserved. All other trademarks are property of their respective owners.