G
Guest
Hi,
I just cannot get this to work. I want to make a cell editable in a datagrid
only if the value of another cell is something specific.
I am able to capture the value of the other cell via the ItemDataBound event
of the datagrid e.g.
If e.Item.Cells(8).Text = "2" Then
'Make the textbox defined in my edititemtemplate read only of invisible
End If
But now I just dont know how to prevent the user modifying the value of the
cell, it would be great if the edititemtemplate textbox just stayed invisible
whenever the user tries to edit the row where the value of the other cell is
e.g. 2.
Help really appreciated.
But
I just cannot get this to work. I want to make a cell editable in a datagrid
only if the value of another cell is something specific.
I am able to capture the value of the other cell via the ItemDataBound event
of the datagrid e.g.
If e.Item.Cells(8).Text = "2" Then
'Make the textbox defined in my edititemtemplate read only of invisible
End If
But now I just dont know how to prevent the user modifying the value of the
cell, it would be great if the edititemtemplate textbox just stayed invisible
whenever the user tries to edit the row where the value of the other cell is
e.g. 2.
Help really appreciated.
But