Hi,
I have a Batch Edit Grid and I'm trying to make a column read only in edit mode with the code below:
But the expression if (e.Item is GridEditableItem && e.Item.IsInEditMode) always return false.
How can I disable cell edit for a specific column?
Thanks,
Gustavo
I have a Batch Edit Grid and I'm trying to make a column read only in edit mode with the code below:
protected
void
RadGrid1_ItemDataBound(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridEditableItem && e.Item.IsInEditMode)
{
GridEditableItem editedItem = e.Item
as
GridEditableItem;
TextBox txt = (TextBox)editedItem[
"RangeMin"
].Controls[0];
txt.ReadOnly =
true
;
}
}
But the expression if (e.Item is GridEditableItem && e.Item.IsInEditMode) always return false.
How can I disable cell edit for a specific column?
Thanks,
Gustavo