Hi.
sfDataGrid1.DataSource = Nothing
sfDataGrid1.Columns.Clear()
sfDataGrid1.AutoGenerateColumns = True
sfDataGrid1.DataSource = DataGrid_DataTable
Up to this place - ok.
Dim record = Me.sfDataGrid1.View.Records(0)
Error -
sfDataGrid1.View is nothing.
As I will add before msgbox (""), after closing the window - it works ok.
msgbox("")
Dim record = Me.sfDataGrid1.View.Records(0)
Q: How can I check if sfDataGrid1.View is... ready (not nothing) after
sfDataGrid1.DataSource = DataGrid_DataTable
?