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.
Hi I am using a databound grid.On some event I want to sort the grid by one column in ascending order only.
I dont know which way the grid is sorted now.
If I call
gridDataBoundGrid1.SortColumn(11);
and grid is already sorted in ascening order by column 11 it gets sorted in descending order.
Is there any other way?
ADAdministrator Syncfusion Team August 10, 2004 03:59 PM UTC
You can use the CurrencyManager and sort its List property directly.
CurrencyManager cm = (CurrencyManager)this.BindingContext[this.grid.DataSource, this.Grid.DataMember];
DataView dv = cm.List as DataView;
dv.Sort = "Column11Name ASC";