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.
1) Is there a way to disable the collapsing of the groups when a user clicks on a column to sort on that column? 2) Is there an event thrown when the user clicks on the header of a column to sort the column? (OnSorting / OnSorted )
CBClay Burch Syncfusion Team September 18, 2009 02:33 PM UTC
1) Currently, there is no property setting that will prevent losing your groups on a Sort.
2) You can catch the "OnSorted" action by listening to the grid.Model.TableProperties.SortColumns.CollectionChanged event. You can catch the "OnSorting" using a preview mouse down event. public Window1() { InitializeComponent();
//subscribe to the events after the Model has been loaded... dataGrid.ModelLoaded += (s, e) => { dataGrid.PreviewMouseDown += new MouseButtonEventHandler(dataGrid_PreviewMouseDown); dataGrid.Model.TableProperties.SortColumns.CollectionChanged += new NotifyCollectionChangedEventHandler(SortColumns_CollectionChanged); }; }