We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

AlphaBlending a row on MouseOver

Hello,

I am new in using databoundgrid and I would like
to ask that in the syncfusion comboBoxExt Demo,
the gridcontrol can alphablending a row on mouseover.

Could anyone tell me how to do that as I've set many different properties about selection on the grid but still got that the selection change only when I click the row. In addition, I would like to alphablending the whole row (like the sample ) but the backgroup colour of the current selected cell always different from the others. Anyway to deal with it as what I care about is the multiple row selection other than the individual cell selection.

Many Thanks,
Jasper Tam

1 Reply

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

Loader.
Live Chat Icon For mobile
Up arrow icon