T
Tom Grinnert
Hello !
Im using a simple Datagrid in a C# VS 2002 Webapplication. If I change the
String in "Item.Cells[1].Controls[0] " the following code outputs after
click on update:
DataGrid being UPDATED - DataGrid1 : Item - 0 > OldString
But the String I write to Grid was "NewString". Why did not show t.Text the
value of the new String ?
private void DataGrid1_UpdateCommand(object source,
System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
DataGrid dgTemp = ((DataGrid)source);
TextBox t = (TextBox)(e.Item.Cells[1].Controls[0]);
Debug.WriteLine("DataGrid being UPDATED - " + dgTemp.ID.ToString() + " :
Item - " + e.Item.ItemIndex.ToString() + " > " + t.Text);
}
Regards
Tom
Im using a simple Datagrid in a C# VS 2002 Webapplication. If I change the
String in "Item.Cells[1].Controls[0] " the following code outputs after
click on update:
DataGrid being UPDATED - DataGrid1 : Item - 0 > OldString
But the String I write to Grid was "NewString". Why did not show t.Text the
value of the new String ?
private void DataGrid1_UpdateCommand(object source,
System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
DataGrid dgTemp = ((DataGrid)source);
TextBox t = (TextBox)(e.Item.Cells[1].Controls[0]);
Debug.WriteLine("DataGrid being UPDATED - " + dgTemp.ID.ToString() + " :
Item - " + e.Item.ItemIndex.ToString() + " > " + t.Text);
}
Regards
Tom