M
Mark Gilkes
I have a page using a dynamically added DataGrid. DataGrid contains a
TemplateColumn and is bound to a DataTable in a protected method called from
OnInit. ItemCommand and SortCommand events are wired and working. When I then
moved the DataGrid into a Table, Row, Cell and Panel control to format the
output I get a null reference exception suggesting I have declared a
reference to the DataGrid. This is clearly not the case. When I catch the
error the DataGrid is rendered properly. Can someone explain this phenomina?
Everthing is the same apart from the DataGrid is now nested deeper in the
Control hierarchy??
TemplateColumn and is bound to a DataTable in a protected method called from
OnInit. ItemCommand and SortCommand events are wired and working. When I then
moved the DataGrid into a Table, Row, Cell and Panel control to format the
output I get a null reference exception suggesting I have declared a
reference to the DataGrid. This is clearly not the case. When I catch the
error the DataGrid is rendered properly. Can someone explain this phenomina?
Everthing is the same apart from the DataGrid is now nested deeper in the
Control hierarchy??