Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
490
Layout.Override.CellClickAction vs. Column.CellClickAction
posted

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!