We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

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 04:36 AM

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.
Live Chat Icon For mobile
Up arrow icon