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


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

1 Reply

MK Muthukumar Kalyanasundaram Syncfusion Team 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

Live Chat Icon For mobile
Up arrow icon