N
needin4mation
I have this in my DataGrid's ItemCreated event:
TableCell myChangeCell = e.Item.Cells[0];
LinkButton myChangeButton = (LinkButton) myTableCell.Controls[0];
myChangeButton.Text="Hello!";
I am trying to get to the button that is automatically created by the
control. I get an object reference error. I couldn't find an answer.
Thanks for any help.
TableCell myChangeCell = e.Item.Cells[0];
LinkButton myChangeButton = (LinkButton) myTableCell.Controls[0];
myChangeButton.Text="Hello!";
I am trying to get to the button that is automatically created by the
control. I get an object reference error. I couldn't find an answer.
Thanks for any help.