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 data set and I am populating the data set using data adapter.
I assigned the data source of the gridDataBoundGrid1 to the dataset.
gridDataBoundGrid1.datasource=dataset1
I am not able to ge the GridBoundColumns.
It is showing as zero.
Please suggest in this issue.
ADAdministrator Syncfusion Team November 5, 2003 12:11 PM UTC
If you do not explicitly add GridBoundColumns to the grid.GridBoundColumns collection, then this property remains unpopulated.
But in this case, you can use the grid.Binder.InternalColumns collection that does get populated when no GridBoundColumns have been explicitly added. Below is some sample usage.
GridStyleInfo style = this.gridDataBoundGrid1.Binder.InternalColumns[3].StyleInfo;
style.CellType = "ComboBox";
style.DataSource = comboColumnDataTable;
style.DisplayMember = "displaymember";
style.ValueMember = "valuemember";
style.BackColor = Color.LightGoldenrodYellow;