K
KavvY
Hello,
I have managed to get to a point where clicking on the update button
retrieves the fields which are updated ok, but the field that contains the
key and is hidden is proving to be difficult.
// The following line finds nothing
String strKey = e.Item.Cells[0].Text;
// these lines are ok.
String strLink = ((TextBox)e.Item.Cells[1].Controls[0]).Text;
String strDesc = ((TextBox)e.Item.Cells[2].Controls[0]).Text;
String strGroups = ((TextBox)e.Item.Cells[3].Controls[0]).Text;
If I make the key viewable (and hence editable) on the DataGrid, and change
the above line to retrieve the TextBox and then the text from that,
everything works great. But unfortunately this isn't really a preferable
solution!
Thanks
Rich.
I have managed to get to a point where clicking on the update button
retrieves the fields which are updated ok, but the field that contains the
key and is hidden is proving to be difficult.
// The following line finds nothing
String strKey = e.Item.Cells[0].Text;
// these lines are ok.
String strLink = ((TextBox)e.Item.Cells[1].Controls[0]).Text;
String strDesc = ((TextBox)e.Item.Cells[2].Controls[0]).Text;
String strGroups = ((TextBox)e.Item.Cells[3].Controls[0]).Text;
If I make the key viewable (and hence editable) on the DataGrid, and change
the above line to retrieve the TextBox and then the text from that,
everything works great. But unfortunately this isn't really a preferable
solution!
Thanks
Rich.