asp.net.ph

DbDataAdapter.Fill Method

System.Data.Common Namespace   DbDataAdapter Class


Adds or refreshes rows in the DataSet to match those in the data source.

Overload List

1. Adds or refreshes rows in the DataSet to match those in the data source using the DataSet name, and initializes a DataTable named "Table".

2. Adds or refreshes rows in a DataTable to match those in the data source using the DataTable name.

3. Adds or refreshes rows in the DataSet to match those in the data source using the DataSet and DataTable names.

4. Adds or refreshes rows in a specified range in the DataSet to match those in the data source using the DataSet and DataTable names.


Example

NOTE: This example uses one of the overloaded versions of Fill. For other examples that may be available, see the individual overload topics.

void FillDemo ( ) {
   // . . . code to initialize DataAdapter and DataSet here . . .

   myDataAdapter.Fill ( myDataSet, "Products" );
}
  C# VB

See Also

DbDataAdapter Members   FillSchema Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph