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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

AlphaBlending a row on MouseOver

Thread ID:

Created:

Updated:

Platform:

Replies:

61701 May 31,2007 06:40 AM UTC May 31,2007 03:14 PM UTC WinForms 1
loading
Tags: GridControl
Jasper Tam
Asked On May 31, 2007 06:40 AM UTC

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

haneefm [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;