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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Thread ID:





118149 Feb 5,2015 05:08 AM UTC Feb 8,2015 03:31 PM UTC WinForms 1
Tags: GridGroupingControl
Asked On February 5, 2015 05:08 AM UTC

how to copy selected column value of each record from ggc to datatable

Muthukumar Kalyanasundaram [Syncfusion]
Replied On February 8, 2015 03:31 PM UTC

Hi Pravin,


Thank you for your interest in Syncfusion products.


If you want to copy the selected column in GridGroupingControl, you can use “GridColumnDescriptor” class. Using this class to get details of selected record by using GetValue method of Record class. Please refer the below code,


private void buttonAdv1_Click(object sender, EventArgs e)

foreach (SelectedRecord selRec in this.gridGroupingControl1.Table.SelectedRecords)
for (int i = 0; i < this.gridGroupingControl1.TableDescriptor.Columns.Count; ++i)
GridColumnDescriptor vcd = this.gridGroupingControl1.TableDescriptor.Columns[i];
if (i != 0)
s += '\t';
s += selRec.Record.GetValue(vcd.Name).ToString(); }
s += Environment.NewLine;
Clipboard.SetDataObject(new DataObject(s), true);


Please let us know if you have any concern.



Muthukumar K


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon