B
bredal Jensen
Hello there,
I need to show or hide a label cotrol in one of the cell of my datagrid.
I tried the following:
----------
DataGridItem item = MyDataGrid.Items[ MyDataGrid.EditItemIndex];
Label status= (Label) item.FindControl("MyGridStatus");
----------
But i get the following :
Object reference not set to an instance of an object.
when i do the following: status.Text = "My datagrid status"
I do this in the "update commande handler...
Can anyone help me with this issue?
Thanks in advance
Jensen
I need to show or hide a label cotrol in one of the cell of my datagrid.
I tried the following:
----------
DataGridItem item = MyDataGrid.Items[ MyDataGrid.EditItemIndex];
Label status= (Label) item.FindControl("MyGridStatus");
----------
But i get the following :
Object reference not set to an instance of an object.
when i do the following: status.Text = "My datagrid status"
I do this in the "update commande handler...
Can anyone help me with this issue?
Thanks in advance
Jensen