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
605
how to change grid cell based on its value
posted

I have ultara grid have all column CellActivation's property  is set to false in order to disable all grid column except  column[9]  that have value list ,i have either column[10] with value list but it is  CellActivation's property  is set to false

i want to set  column[10]  CellActivation's property to true when change value of  column[9] withen the same row  not for entire grid

  • 17259
    Offline posted

    Use InitializeRow event:

    if (e.Cell.Row.GetCellValue(column9Key) == myValue)

    {

    e.Cell.Row.Cells[column10Key].IgnoreRowColActivation = true

    e.Cell.Row.Cells[column10Key].Activation = Activation.AllowEdit;

    }

    else

    e.Cell.Row.Cells[column10Key].IgnoreRowColActivation = false