Is it possible to gray out a cell without graying out the bitmap that is displayed in the cell?The goal is to be able to click on the cell with the image without having the orange background defined in our style library but we want to keep this orange background if we click on a cell in the 2nd column that contains the message
.
Hello Pokorny,
I have been investigating into your requirement in this case, but I believe I will need a little more information from your end on this matter before I can really make a recommendation.
Regarding your style library and the action that is happening when you click, is the entire row highlighting when you click any cell within it or is only the cell clicked showing the highlight? If it is highlighting the entire row, you will likely need to change your styling library from a row highlight/background to a cell one.
From the looks of your screenshot, it looks like you want to have the highlight appear on the text column, but not on the Image one, but it is a little difficult to tell what layout your UltraGrid is in and so it is difficult to make a recommendation? Can you please provide some more information on this? If you have a sample project that demonstrates the behavior, would it be possible for you to attach it?
Please let me know if you have any other questions or concerns on this matter.
Hi Andrew,I'm sending you a project with the last problem that's blocking me.I managed to keep the image color by canceling the selection of the BeforeSelectChange eventNow, when clicking on the cell that contains the image, is it possible to also remove the selection frame that appears around the cell?
UltraGridMouseHovering.zip
Thank you for your update and the sample project.
I would just like to confirm the piece that you are looking to remove on the clicked cell in this case? I am under the impression that you are looking to remove the dotted line border that appears when you click and activate the cell, but I’d like to confirm this before making any recommendations?
Hi Andrew,
It's okay, everything is working fine now.I solved my last frame problem using the following class:
public class NoFocusRect : IUIElementDrawFilter { public bool DrawElement(DrawPhase drawPhase, ref UIElementDrawParams drawParams) { return true; }
public DrawPhase GetPhasesToFilter(ref UIElementDrawParams drawParams) { return DrawPhase.BeforeDrawFocus; } }I send you the project with my last modifications.Thanks for your help.
Best regards
6014.UltraGridMouseHovering.zip
Hi Andrew,Yes, I would like to remove the frame as indicated by the arrow in the drawing.If you click on it, the cell must appear unframed to remain the same as the other 2. It's like a disabled cell but keeping the colors of the image.