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 have a problem in the following scenario
1) Assign a DataSource to DataBoundGrid with cols A,B,C
2) Let user sort by column C
3) clear columns and internal columns collection and change datasource programmatically to one with only columns A,B
Grid crashes with IndexOutOfRangeException looking for column C.
The correct behavior (as in MS Datagrid)
is to become unsorted.
DataBoundGrid 1.6.1.6
ADAdministrator Syncfusion Team October 3, 2003 03:13 PM UTC
Use the following code to reassigning the datasource to the grid, otherwise some internal settings are not correctly reset:
this.gridDataBoundGrid1.DataSource = null;
this.gridDataBoundGrid1.Binder.ResetHierarchyLevels();
this.gridDataBoundGrid1.DataSource = dataSource;
Stefan