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.
Unfortunately, activation email could not send to your email. Please try again.

Copy data from gridgrouping to datatable

Thread ID:

Created:

Updated:

Platform:

Replies:

31184 Jul 1,2005 04:20 AM Jul 1,2005 05:36 AM Windows Forms 1
loading
Tags: GridControl
Anna Srinivasan
Asked On July 1, 2005 04:20 AM

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

Administrator [Syncfusion]
Replied On July 1, 2005 05: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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;