S
Stan
This is how I access Pieces field in my editable datargid during Update
event:
protected void grdMain_OnUpdate(Object sender, DataGridCommandEventArgs e)
{
string Pieces = ((TextBox) e.Item.FindControl ("txtPieces")).Text;
....
}
I need to highlight this field when user clicks Edit. (This makes easier for
them to overwrite the content of the field). However, the same code does not
work during
Edit event - FindControl returns null. It looks like the the control is not
available at this time...
Is there a way for me to access it AFTER user clicked Edit but BEFORE
Update?
Thanks,
-Stan
event:
protected void grdMain_OnUpdate(Object sender, DataGridCommandEventArgs e)
{
string Pieces = ((TextBox) e.Item.FindControl ("txtPieces")).Text;
....
}
I need to highlight this field when user clicks Edit. (This makes easier for
them to overwrite the content of the field). However, the same code does not
work during
Edit event - FindControl returns null. It looks like the the control is not
available at this time...
Is there a way for me to access it AFTER user clicked Edit but BEFORE
Update?
Thanks,
-Stan