In your handler for the DataGrid OnItemDataBound event, do something like this:
if(e.Item.ItemIndex == myDataGrid.EditItemIndex)
{
TextBox t = (TextBox)e.Item.FindControl("TextBox2");
if(t != null && t.Text == "TESTVALUE")
e.Item.Cells[2].Text= "TESTVALUE";
}
That will replace the edit contents of that single cell with the text for
the field value.
You'll have to do a comparable test in your handler for OnUpdateCommand
because TextBox.Text for the cell you changed will have unexpected contents
(an empty string in my test).
HTH
--
Dale Preston
MCAD C#
MCSE, MCDBA
"Gidi" wrote:
Hi,
Is it possible to Disable editing of one specific cell in one specific row
in dataGrid?
Thanks,
Gidi.