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.
Is it possible to configure the grid control to behave as a sorted list view?
What I would like is a cross between the GridListControlSample and the SortedGridControl examples.
I would like to be able to have multiple columns and be able to sort by clicking on the column headers. I would like the sorted column to display an arrow icon to indicate the sort direction. I would also like clicking on a single item to result in the whole row being selected?
Thanks in advance,
Nik
ADAdministrator Syncfusion Team December 2, 2002 09:55 PM UTC
You can combine the techniques in the GridControlSort sample and the HighLightCurrentRow sample to implement this. In the GridControlSort sample, make all the cells use the Static celltype instead of the default TextBox. You can do this by setting gridControl1.TableStyle.CellType = "Static";
Then add the 3 event handlers CurrentCellDeactivated, CurrentCellActivated and PrepareViewStyleInfo as described in the HighLightCurrentCell sample.
Attached is a modified GridControlSort sample showing these changes.