Hi,I'm using a wincombo with some conditional format.The conditional format set the background to red if the value in the column exceeds a threshold. As long as no row is selected, it looks like this :
If you select a row with a red cell, it looks like this :
As you can see, on this immage it's impossible to see the selected row is covering the red background.Is it possible to change the active row background color to be somewhat transparent ?This would allow to see "through" the blue selected record and being aware it's covering a red cell.Regards,Ivan
Hi Ivan,
If you are using a relatively recent version of the controls, then the easiest thing to do is make the selection appear as a semi-transparent overlay like Excel does.
You do it like so:
this.ultraCombo1.DisplayLayout.SelectionOverlayColor = SystemColors.Highlight;
You don't have to use the system highlight color, of course, you can use any color you want.
Sounds great. Yes I just changed to 2011V1.I tried it. If i set this to any color, I don't see any color at all. It seems to be 100% transparant.Is there another proerty to set the percentage ?
No, there's no percentage. The level of transparency is determined by the Alpha channel on the color you provide.
If you provide a solid color, the grid will use some default level. If you provide a color that already has an alpha channel, then the color you provided will be used as is.
I just tested this out, and much to my surprise, it does not work for me, either. Just as you say, it shows no selection at all. It works in the grid, but not in the Combo. This is clearly a bug.
I will forward this thread over to Infragistics Developer Support so they can create a case for you and write this up for developer review.
In the mean time, another possible workaround for you would be to apply the appearance to the cell using the InitializeRow event instead of using Conditional Formatting. In InitializeRow, you can set both the Appearance and the SelectedAppearance on the cell to the same appearance. This way, when the row is selected, the cell with the color applied to it will not change.
Hi! I have NetAdvantage for .NET 2007 Vol. 3 CLR 2.0 version. How can I get a semi transparent row highlight? Or it's not possible in this version?
Thanks!
Hi,
No, it's not a free upgrade.
Can I perform this update (to 2009 version) for free?
Hi Yuri,
This feature was add in 2009. It does not exist in the 2007 version.
It's not impossible to achieve in that version. You could write code and use a DrawFilter to draw the highlight yourself. But it would be quite difficult and require a lot of code. I wouldn't recommend it. It would be a lot easier just to upgrade. :)