Hi Shek,
Bydefault, the groupinggrid keeps the selected records when sorting the grid by column. Here is a minimal sample that shows this task.
Sample :
SeelctionGGC.zipIf you want to get the selected records then use the Table.SelectedRecords collection property and use the selectedRecord.Record.GetData method to get the datarow information of selected record. Below are the codes:
foreach (SelectedRecord srec in this.gridGroupingControl1.Table.SelectedRecords )
{
DataRowView row = srec.Record.GetData() as DataRowView;
Console.WriteLine(row.Row["Col1"]);
Console.WriteLine(srec.Record.Info);
}
Best regards,
Haneef