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 run this code and it produces an error i.e. the index is out of range. In immediate window, when i look at this.gridDatabound1.GridBoundColumns.Count, it shows it as 0. According to my understanding this grid should have 4 bound columns. Here is the snippet:
DataTable myDataTable = new DataTable("MyDataTable");
ok .. i figured out that i just need to change gridboundcolumns to binder.internalcolumns.
Will it recognize gridboundcolumn if i set the datasource at design time?
ADAdministrator Syncfusion Team February 21, 2007 06:03 PM UTC
No, just setting the datasource at design time will not populate the grid.GridBoundColumns collection. Unless you explicitly add GridBoundColumns to the grid.gridBoundColumns collection, the grid will use the grid.Binder.InternalColumns collection. But you can explicitly add GridBoundColumns either at design time, or at runtime.