The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
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
ADAdministrator Syncfusion Team October 15, 2003 05:15 AM
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