ultraman
Centurion
Hi !
I'm trying to update a table with an editable DataGrid (Edit, Update, Cancel button). In the Update event of the item, I can retreive every value by using the TableCell object (DataGridCommandEventArgs.Item). The only value I can' retreive is the one that I stored in an invisible cell.
Here's a sample code :
If the Cell is Visible, it works fine, but if it's not, I always get "". Does anybody knows how could I get the value of this invisible cell ?
I'm trying to update a table with an editable DataGrid (Edit, Update, Cancel button). In the Update event of the item, I can retreive every value by using the TableCell object (DataGridCommandEventArgs.Item). The only value I can' retreive is the one that I stored in an invisible cell.
Here's a sample code :
Code:
protected void ItemsGrid_Update(object sender, DataGridCommandEventArgs e)
{
//We have to look for the inner control (TextBox) because we're in
//edit mode and every cell is filled with a TextBox
string strNumLigne = e.item.Cells[0].Controls[0].Text;
}
If the Cell is Visible, it works fine, but if it's not, I always get "". Does anybody knows how could I get the value of this invisible cell ?