Hi,
My grid is bound to a data source that has some read-only and some read-write properties. When clicking on a cell that is read-only, nothing should happen. However, when clicking on a cell that is read-write, I would like it to enter Edit mode.
I've tried the following 2 things: protected void InitializeLayout( object sender_, InitializeLayoutEventArgs args_ ) { args_.Layout.Bands[ 0 ].Columns[ "MyColA" ].CellClickAction = CellClickAction.Edit; //Doesn't seem to do anything args_.Layout.Override.CellClickAction = CellClickAction.Edit; //Makes all cells Editable regardless of writability }
Can anyone explain to me the difference here? The latter behavior (setting it on the layout override) I understand...but why does setting the CellClickAction on the specific column not seem to do anything at all?
As always, thanks in advance!
Thank you sir, this works nicely.
I don't know about CelllickAction, but I think what you're looking for is column.CellActivation. Set it to NoEdit and you'll get a read-only cells.