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

Events clearing all selections

Thread ID:

Created:

Updated:

Platform:

Replies:

7900 Oct 14,2003 12:14 PM UTC Oct 15,2003 10:15 AM UTC Windows Forms 2
loading
Tags: GridControl
Gene Gorokhovsky
Asked On October 14, 2003 12:14 PM UTC

grid.Model.Selection.Ranges.Clear does not fire SelectionChanged/ging events. I consider this is a bug since selections definitely change when this method is called. Alternative: grid.Model.Selections.SelectRange(GridRangeInfo.Rows(1,this.Model.RowCount),false); works fine. Gene Gorokhovsky

Gene Gorokhovsky
Replied On October 14, 2003 12:37 PM UTC

Actually the problem turns out to be something else: when I refresh data source,for some reason underlying grid.Model changes and I no longer receive Selection events. Gene Gorokhovsky > grid.Model.Selection.Ranges.Clear does not fire SelectionChanged/ging events. > I consider this is a bug since selections definitely change when this method is called. > > Alternative: > grid.Model.Selections.SelectRange(GridRangeInfo.Rows(1,this.Model.RowCount),false); > works fine. > > Gene Gorokhovsky

Administrator [Syncfusion]
Replied On October 15, 2003 10:15 AM UTC

Are you using one of the dynamic splitter controls like the GridRecordNavigationControl as the parent of the grid? If so, make sure you are subscribing to the PaneCreated and PaneClosing events to dynamically subcribe and unsubscribe to the grid events you are using. With dynamic splitters, a grid is dynamically created and destroyed in panes are created and closed. This means you need to dynamically subscribe to grid events. You can see samples of this in any of our samples that uses such splitters, for example: Essential Suite\Grid\Samples\DataBound\GDBGMultiHeader

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

;