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.
Syncfusion Feedback

GGC selected row changed

Thread ID:

Created:

Updated:

Platform:

Replies:

71001 Jan 11,2008 09:57 AM UTC Jan 11,2008 06:15 PM UTC Windows Forms 1
loading
Tags: Grouping
Paul Sullivan
Asked On January 11, 2008 09:57 AM UTC

Hi,
Which event is fired when the user selects a different row, either by clicking with the mouse or using the arrow keys?
Thanks
Paul


haneefm [Syncfusion]
Replied On January 11, 2008 06:15 PM UTC

Hi,

The GridGroupingControl has two types of selection mode.

Type 1: Record based selection
>>>>>>
This selection support is turned on by setting the grid.TableOptions.AllowSelections to None and setting the grid.TableOptions.ListBoxSelectionMode to something other than None.This selection functionality raises events like the grid.SelectedRecordsChanging/SelectedRecordsChanged event.

[c#] //Add a Selection.
this.gridGroupingControl1.Table.SelectedRecords.Add(record);

//Detect the selection
private void gridGroupingControl1_SelectedRecordsChanging(object sender, SelectedRecordsChangedEventArgs e)
{
if( e.Action == SelectedRecordsChangedType.Added )
e.Cancel = IsRowHeaderCell;
}

Type 2: Row based selection
>>>>>>>
This selection support can be turned on by setting the grid.tableOptions.AllowSelections to something other than None. This selection functionality raises events like the grid.TableModel.SelectionChanging/Changed.

[c#]
this.gridGroupingControl1.TableControl.Selections.Add(GridRangeInfo.Row(3));

Please refer to the following KB article for more details.
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=344

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.

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

;