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.

SelectedRecordsChanging

Thread ID:

Created:

Updated:

Platform:

Replies:

29133 May 17,2005 02:30 PM May 17,2005 04:26 PM Windows Forms 2
loading
Tags: GridControl
Brian Corley
Asked On May 17, 2005 02:30 PM

Ideas on why this is happening????? I am using the GridGroupingControl and I have added an event handler for the SelectedRecordsChanging. If I try to select a row and the following code is called; the row will not be selected private void grid_SelectedRecordsChanged(object sender, Syncfusion.Grouping.SelectedRecordsChangedEventArgs e) { string s = e.SelectedRecord.Record.ToString(); }

Brian Corley
Replied On May 17, 2005 02:34 PM

Sorry, Should be: I am using the GridGroupingControl and I have added an event handler for the SelectedRecordsChanged. >Ideas on why this is happening????? > >I am using the GridGroupingControl and I have added an event handler for the SelectedRecordsChanging. > >If I try to select a row and the following code is called; the row will not be selected > > private void grid_SelectedRecordsChanged(object sender, Syncfusion.Grouping.SelectedRecordsChangedEventArgs e) > { > string s = e.SelectedRecord.Record.ToString(); > }

Administrator [Syncfusion]
Replied On May 17, 2005 04:26 PM

Make sure you have set both these properties. this.gridGroupingControl1.TableOptions.AllowSelection = GridSelectionFlags.None; this.gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.One; Then for your handler,
private void gridGroupingControl1_SelectedRecordsChanged(object sender, SelectedRecordsChangedEventArgs e)
{
	if(e.Action == SelectedRecordsChangedType.Added)
		Console.WriteLine(e.SelectedRecord.Record.ToString());
}

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.

;