Dmitriy,
thanks for your concern, I immediately tested it, but when pressing the
shift or control button I can still only select one row....maybe because
of my additional methods at the mouseclick and mousemove events... let
me show them:
private void dataGridClients _MouseMove(obje ct sender, MouseEventArgs e)
{
this.mouseX = e.X; // global variables
this.mouseY = e.Y;
}
private void dataGridClients _Click(object sender,
EventArgs e)
{
System.Windows. Forms.DataGrid. HitTestInfo myHitTest =
this.dataGridCl ients.HitTest(m ouseX,mouseY);
if (myHitTest.Type == DataGrid.HitTes tType.RowHeader )
{
for(int i = 0 ; i < this.dataGridCl ients.VisibleRo wCount; i++)
{
this.dataGridCl ients.UnSelect( i);
}
this.dataGridCl ients.Select(my HitTest.Row);
}
}
this one I also implemented. But it's for when people navigate through
the datagrid with the arrow keys:
private void dataGridClients _CurrentCellCha nged(object sender, EventArgs
e)
{
for(int i = 0 ; i < this.dataGridCl ients.VisibleRo wCount; i++)
{
this.dataGridCl ients.UnSelect( i);
}
this.dataGridCl ients.Select(th is.dataGridClie nts.CurrentRowI ndex);
}
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!