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.
I am trying to use a grid and sort when the header is clicked, I sucessfully added it to one grid but can't seem to get the second one working. I'm using the basic grid control then adding the following code snippet
//turn off column selections - not absolutely needed but does simplify things
this.gridControl1.AllowSelection = GridSelectionFlags.Any & ~GridSelectionFlags.Column;
//add a sort header to the CellModels... (in 1.0, only available by default in GridDataBoundGrid)
this.gridControl1.CellModels.Add("ColumnHeaderCell", new GridSortColumnHeaderCellModel(this.gridControl1.Model));
But it doesn't seem to be working I think I must have forgotten something but don't know what. Any help would be greatly appreciated.
ADAdministrator Syncfusion Team September 4, 2003 08:30 PM UTC
Have you looked at this sample, Syncfusion\Essential Suite\Grid\Samples\Quick Start\GridControlSort?
You can copy and paste code from that sample to your project to support sorting in a GridControl.
ADAdministrator Syncfusion Team September 4, 2003 09:37 PM UTC