Use the DataTable as the DataSource.

Peter Bromberg replied to touseef ahmed at 11-May-08 05:05

1. First, you get DataSet with one or more DataTables

2. Then set DataGrid (or GridView) DataSource property to the DataTable

3. Call the DataBind method of the GridView or DataGrid

Check out the quickstarts section at the asp.net website for complete tutorials.

Biography
Peter Bromberg is a C# MVP, MCP, and .NET expert who has worked in banking ,financial and telephony for 20 years. Pete focuses exclusively on the .NET Platform, and his samples at GotDotNet.com have been downloaded over 56,000 times. Peter enjoys producing 3D raytraced digital photo collage with Maya, the beach, and fine wines. You can view Peter's UnBlog and IttyUrl sites.
Please post questions at forums, not via email!

Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  datagrid or dataview send the data to dataset or datatable.. - touseef ahmed  12-May-08 03:55 3:55:39 AM
      Use the DataTable as the DataSource. - Peter Bromberg  11-May-08 05:05 5:05:30 PM
      Bind Datagrid - sundar k  11-May-08 10:50 10:50:59 PM
      DataGrid sending data - Sanjay Verma  11-May-08 11:53 11:53:50 PM
      Check here - santhosh kapa  12-May-08 12:05 12:05:35 AM
      Try This - Sujit Patil  12-May-08 12:26 12:26:53 AM
      Check this - Chirag Bhavsar  12-May-08 12:57 12:57:58 AM
      Have a look at this - chakradhar koturu  12-May-08 01:09 1:09:29 AM
View Posts