P
Patrice COTE via .NET 247
Hi !
I'm trying to update a table with an editable DataGrid (Edit,Update, Cancel button). In the Update event of the item, I canretreive every value by using the TableCell object(DataGridCommandEventArgs.Item). The only value I can' retreiveis the one that I stored in an invisible cell.
Here's a sample code :
protected void ItemsGrid_Update(object sender,DataGridCommandEventArgs e)
{
//We have to look for the inner control (TextBox) becausewe'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 alwaysget "". Does anybody knows how could I get the value of thisinvisible cell ?
I'm trying to update a table with an editable DataGrid (Edit,Update, Cancel button). In the Update event of the item, I canretreive every value by using the TableCell object(DataGridCommandEventArgs.Item). The only value I can' retreiveis the one that I stored in an invisible cell.
Here's a sample code :
protected void ItemsGrid_Update(object sender,DataGridCommandEventArgs e)
{
//We have to look for the inner control (TextBox) becausewe'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 alwaysget "". Does anybody knows how could I get the value of thisinvisible cell ?