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 have a DBG which has not yet been bound to a datasource and I have used the designer to setup the columns. I would like to get the column headings to display before I load the grid from my datasource. Any way to do this? I was thinking of using a dummy dataset with a blank datarow.
Thanks in advance. Mark (vb.net)
ADAdministrator Syncfusion Team July 22, 2004 10:35 AM UTC
So you set up GridBoundColumns in the designer, then at runtime, you want to set an empty grid with the proper column headers until you set teh real DataSource later. Is this what you want?
If so, in formload you can try setting the grid.DataSource to an empty DataTable.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.GridDataBoundGrid1.DataSource = New DataTable("emptytable")
End Sub