This is the code I am using to generate my grid with data.
Private Sub LoadGrid(ByVal sSql As String)
BindingSource1.DataSource = c_External.GetRequestedData(sSql)
With RadGridView1
.DataSource = BindingSource1
.MasterGridViewTemplate.BestFitColumns()
End With
End Sub
Basically I am making two passes with this code. The first pass the sql statement is asking for 2 columns to be returned. The 2 columns return just fine. The second time the sql statement is requesting 14 columns worth of data to be returned. The correct data is being returned but the grid is still only showing 2 columns. How can I get the grid to re-autogenerate the remainder of the columns?
Private Sub LoadGrid(ByVal sSql As String)
BindingSource1.DataSource = c_External.GetRequestedData(sSql)
With RadGridView1
.DataSource = BindingSource1
.MasterGridViewTemplate.BestFitColumns()
End With
End Sub
Basically I am making two passes with this code. The first pass the sql statement is asking for 2 columns to be returned. The 2 columns return just fine. The second time the sql statement is requesting 14 columns worth of data to be returned. The correct data is being returned but the grid is still only showing 2 columns. How can I get the grid to re-autogenerate the remainder of the columns?