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.
clicking the column header of a ggc will sort the records, how do i obtain the datatable in the order it was sorted for that ggc?
i know in a normal datatable, i can retrieve it using dtbl.defaultview.
ADAdministrator Syncfusion Team October 10, 2005 08:05 AM UTC
You can iterate through the FilteredRecords collection.
foreach(GridRecord r in this.gridGroupingControl1.Table.FilteredRecords)
{
DataRowView drv = r.GetData() as DataRowView;
}
ADAdministrator Syncfusion Team October 10, 2005 09:35 AM UTC
is there any other way to obtain the list directly in dataview instead of having to loop through each individual record?
ADAdministrator Syncfusion Team October 10, 2005 10:57 AM UTC
No. The grouping control does not use the dataview to do its sorting. So, sorting the grid does not sort the data in your datatable (or in any dataview). To access the data in the sort order generated by sorting the grid, you access it through the FilteredRecords collection.