Hi,
I've a dataGrid which i overide the MouseUp event.
now, the user can select only one row, and i want to give the user the
option to select few rows when he presses the CTRL+Mouse (like usually done),
and i can't find the way to do it.
my MouseUp function looks like this:
private void dataGrid1_MouseUp(object sender, Windows.Forms.MouseEventArgs e)
{
System.Drawing.Point pt = new Point(e.X, e.Y);
DataGrid.HitTestInfo hti = dataGrid1.HitTest(pt);
if(hti.Type == DataGrid.HitTestType.Cell)
{
dataGrid1.CurrentCell = new DataGridCell(hti.Row, hti.Column);
dataGrid1.Select(hti.Row);
}
m_row=dataGrid1.CurrentCell.RowNumber;
}
Thanks,
Gidi