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.

Row Selection in GGC

Thread ID:

Created:

Updated:

Platform:

Replies:

68728 Sep 28,2007 03:34 PM Oct 2,2007 03:29 PM Windows Forms 1
loading
Tags: Grouping
Abhishek Shivalingaiah
Asked On September 28, 2007 03:34 PM

Syncfusion 5.1
VS 2005

When the user selects a row on GGC, how do I capture the row information and then re-apply it(re-select the same row) when the user sorts or filters the GGC?

Thanks

haneefm [Syncfusion]
Replied On October 2, 2007 03:29 PM

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.zip

If 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

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.

;