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
Thanks.
you can control this by changing the appearance of the active row
ultragrid1.DisplayLayout.Override.ActiveRowAppearance
Thanks. The row is still highlited and appears to be selected however. If the user copies and pastes the rows the last clicked row will be missing.
private void ultraGrid1_BeforeSelectChange(object sender, Infragistics.Win.UltraWinGrid.BeforeSelectChangeEventArgs e)
if (ModifierKeys == Keys.Control && e.Type.Name == "UltraGridRow")
e.Cancel = true;