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
65
Multiple row selection in grid using ctrl+click
posted

Hi There,

    I have ultraWinGrid, in which I need to enable the multiple row selection. With the following code in the MouseUp event, its working fine:

 

 

 

 

 

 

UltraGrid

 

grid = sender as UltraGrid

;

 

 

// Get the row that was clicked on, if any.

 

 

UltraGridRow row = this.GetRowFromPoint(grid, new Point

(e.X, e.Y));

 

 

if (row != null

)

{

 

 

// Clear any cell or column selection.

grid.Selected.Cells.Clear();

grid.Selected.Columns.Clear();

 

 

// Toggle the selection of the row.

row.Selected = !row.Selected;

}

But the problem is, I want to raise the MouseUp event only if I click the row with Ctrl or Shift key pressed. Is there any property to set for using the ctrl or shift keys?

Thanks in Advance,

Santosh