3

I know that we normally fill DataSetwith the help of DataAdapter's Fill method, but I want to know that Can we fill DataSet without DataAdapter?
Any idea ?

Amit
  • 21,570
  • 27
  • 74
  • 94

1 Answers1

3

You can use DataSet.Load to load from an IDataReader. Or DataSet.ReadXml to read from an Xml document.

Take a look at the DataSet methods on MSDN.

Joe
  • 122,218
  • 32
  • 205
  • 338