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.
Unfortunately, activation email could not send to your email. Please try again.

Overriding selection/activate shading and highlighting

Thread ID:

Created:

Updated:

Platform:

Replies:

6801 Aug 28,2003 10:29 AM Aug 28,2003 11:35 AM Windows Forms 2
loading
Tags: GridControl
Mark Griffis
Asked On August 28, 2003 10:29 AM

Hopefully you have an easy answer, if you don't, I can generate code for you. I want to override the default selection shading for highlighting in a virtual grid. Specifically, I am trying to generate nice looking highlight by row. I have used your code samples to highlight rows, but the row highlight is augmented by selection and current cell highlighting on the selected and current cells. I would like to explicitly control this shading and highlighting, but I would like to keep the controller action that decides what areas are selected. Thanks for your help, Mark

Administrator [Syncfusion]
Replied On August 28, 2003 11:10 AM

Have you tried setting the grid.AlphaBlendSelectionColor property to see if that gives you what you want?

Mark Griffis
Replied On August 28, 2003 11:35 AM

> Have you tried setting the grid.AlphaBlendSelectionColor property to see if that gives you what you want? I had tried disabling Alphablending in the AllowSelection, but I hadn't tried setting the AlphaBlendingSelectionColor, which seems obvious now. It does give me what I want. Thanks. I also got rid of the current cell highlighting by cancelling in CurrentCellActivating handler. FYI, the AlphaBlendingSelectionColor will not accept an Alpha of 0 (throws an exception). I used a value of Color.FromArgb(1,0,0,0) to get rid of selection shading. Thanks again. Mark

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.

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.

;