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
790
CellClickAction at the cell level
posted

We have a situation where we need to set the CellClickAction at the cell level ( the setting depends on properties of the row), instead of at the column or override level.  Is there an easy way to do this...or to achive the same functionality? We are currently on version 8.2.

Thanks,

Darin

Parents
No Data
Reply
  • 20872
    Offline posted

    Hello Darin,

    I think that you can use the BeforeCellActivate event ot the UltraGrid to check the value of the current cell and decide what will be the activation for that cell. The code snippet should look something like that:

     private void ultraGrid1_BeforeCellActivate(object sender, CancelableCellEventArgs e)
            {
                if (e.Cell.Value.ToString() == "Some String")
                {
                    e.Cell.Activation = Activation.NoEdit.;
                }

           }

    Please let me know if this suits to your scenario.

    Sincerely,

    Danko Valkov

    Developer Support Engineer

    Infragistics, Inc.

     

Children