This question is locked. New answers and comments are not allowed.
I would like each row to determine whether a cell is readonly or not at runtime, based on a property of the underlying bound object.
Currently, the only way I can get this to work is by doing the following:
object boundObject = e.DataElement;
if (boundObject.SomeProperty == "xyz")
e.Row.Cells[4].IsEnabled = false;
I'd rather make the Cell ReadOnly, however, it does not expose an IsReadonly property.
Is there a way to do this?
Thanks!
Currently, the only way I can get this to work is by doing the following:
object boundObject = e.DataElement;
if (boundObject.SomeProperty == "xyz")
e.Row.Cells[4].IsEnabled = false;
I'd rather make the Cell ReadOnly, however, it does not expose an IsReadonly property.
Is there a way to do this?
Thanks!
