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
150
Need to disable ctrl click in ultragrid
posted

I need to prevent selecting discontinuous rows in a certain grid.

Something like

private void itemGrid_MouseClick(object sender, MouseEventArgs e)

{

 

 

 

if ((Control.ModifierKeys & Keys.Control) == Keys.Control)

{

//stop the clicked row from being selected

}

}

Thanks,

Bob

Parents
No Data
Reply
  • 5520
    Suggested Answer
    posted

       private void ultraGrid1_BeforeSelectChange(object sender, Infragistics.Win.UltraWinGrid.BeforeSelectChangeEventArgs e)

            {

     

                if (ModifierKeys == Keys.Control && e.Type.Name == "UltraGridRow")

                {

                    e.Cancel = true;

                }

            }

Children