Hello all, new user here.
In code, I create a table, then bind it to the grid.
DataTable table = new DataTable(“Path”);
table.Columns.Add(“ID”, typeof(int));
table.Columns.Add(“Name”, typeof(string));
//…
grd.SetDataBinding(table, null);
// Programmatically add rows to table…
table.Rows.Add(…);
This works the first time I call it, but after some data changes in the tool, calling the above code again errors at the SetDataBinding with:
Object reference not set to an instance of an object.
I am using a FixedFooterRow, but otherwise, it’s a rather boring grid.
Imported from legacy forums. Posted by Dustin (had 1014 views)