Copy data from gridgrouping to datatable

Hi, How do i copy data from gridGrouping control to datatable? Thanks, Anna

1 Reply

AD Administrator Syncfusion Team July 1, 2005 09:36 AM UTC

What is the DataSource of your GroupingGrid? If it is a DataTable, then you can use DataTable.Copy to copy the data in the grid to another DataTable. If it is an ArrayList of strongly typed objects, then 1) Create a DataTable 2) Add DataColumns (one for each public property in your typed object) to the DataTable.Columns collection 3) Loop through your ArrayList, setting the value of each object into the DataTable.Rows in the coressponding columns.

Loader.
Up arrow icon