SiteMap  | About    

Find Tables in a Dataset

The DataTableCollection contains zero or more DataTable objects. The SqlDataAdapter Object allows us to populate DataTables in a DataSet. Build and fill each DataTable in a DataSet with data from a data source using a DataAdapter.

In some situations we have to find the number of tables exists in a Dataset Object . The following ASP.NET program shows how to find the number of tables in Dataset Object.



	<!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:ListBox ID="ListBox1" runat="server"></asp:ListBox>
			<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.