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
1635
Set only CheckBox Column AllowUpdate
posted

I'd like to set only checkbox column allowupdate, but another column does not allow update.

Is it possible with UltraGrid?

Parents
No Data
Reply
  • 2732
    Offline posted

    Hello,

    I typically do this by first setting the grid to allow update:
    ultraGrid1.DisplayLayout.Override.AllowUpdate = DefaultableBoolean.True

    And then controlling the allow update on each column, you would do this in the InitializeLayout event.

    foreach (var column in initializeLayoutEventArgs.Layout.Bands[0].Columns)
    {
        if (column.Key == "CheckBoxColumn")
        {
          column.CellActivation = Activation.AllowEdit;
          column.CellClickAction = CellClickAction.EditAndSelectText;
       }
       else
       {
          column.CellActivation = Activation.NoEdit;
          column.CellClickAction = CellClickAction.Default;
       }
    }

Children