JJ
Jisha Joy
Syncfusion Team
September 14, 2009 11:48 AM UTC
Hi David,
You could get the selected range and loop through the selected rows of GridGroupingControl. See the code:
private void button1_Click(object sender, EventArgs e)
{
GridRangeInfoList list = this.gridGroupingControl1.TableControl.Selections.GetSelectedRows(true, true);
foreach (GridRangeInfo range in list)
{
Console.WriteLine(range.ToString());
for (int j = range.Top; j <= range.Bottom; j++)
{
Table table = this.gridGroupingControl1.Table;
Element el = table.DisplayElements[j];
Record r = el.ParentRecord;
Console.WriteLine(r.ToString());
}
}
}
Please let me know if this helps.
Regards,
Jisha