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
1315
Enable / Disable buttons on Grid column style set to Button
posted

Hi

I have set column style to be "Button" on first column of the data grid.

Is it possible to disable some of the buttons on data grid whose columnstyle is set to Button?

Thanks

Shivangi

Parents
No Data
Reply
  • 5118
    Verified Answer
    posted

    Hi Shivangi,

    If you disable the cell it should follow through to the button. So for example:

    private void ultraGrid1_InitializeRow(object sender, Infragistics.Win.UltraWinGrid.InitializeRowEventArgs e)
    {
        if (e.Row.Index % 2 == 0)
        {
            e.Row.Cells[0].Activation = Infragistics.Win.UltraWinGrid.Activation.Disabled;
        }

Children