HA
haneefm
Syncfusion Team
May 31, 2007 03:14 PM UTC
Hi Jasper,
One you can do this by handling the MouseMove event and use Model.Selection property to add row selection for mouse over row in grid. Here is a code snippet.
private void gridDataBoundGrid1_MouseMove(object sender, MouseEventArgs e)
{
GridDataBoundGrid grid = sender as GridDataBoundGrid;
int row ,col;
if( grid.PointToRowCol(new Point(e.X,e.Y),out row, out col) )
{
grid.Model.Selections.Clear(false);
grid.Model.Selections.Add(GridRangeInfo.Row(row));
grid.Model.Selections.Add(GridRangeInfo.Row(grid.CurrentCell.RowIndex));
}
}
Best regards,
Haneef