Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
544
Cell selection and Infragistics.Win.UltraWinGrid.ColumnStyle.URL
posted

Hi there,

 I have two problems with acheiving wanted results. First one is when I select a cell in WinGrid with Style set to ColumnStyle.URL, text in selected cell does not get coloured white (or HighlightText) and remains blue on highlighted background which is not easily readable. Is there any way to override this kind of behaivour? (I am aware of IUIElementDrawFilter but I am not entirely sure if this is a way to go).

 

Second problem (for which i have a workaround) is, when row is selected and user clicks on some other control than WinGrid. In this case grid looses an input focus. Selected rows (or only single active) are still highlighted in blue color, which is a bit misleading (user may think that grid still contains focus). In standard .NET control System.Windows.Forms.ListView there was a property HideSelection which marks selected items in grey color or even hides selection (though rows remain selected). Is there any such property that can be set?

 

Thanks in advance for your time. 

  • 469350
    Verified Answer
    Offline posted

     Hi,

        1) I think this is probably a bug. The text color should automatically be inverted when you select it. You should Submit an incident to Infragistics Developer Support

        2) I'm not 100% sure. But my guess is that the HideSelection functionality is really intended for controls that do not indicate focus in any other way. The grid (and many other controls) indicate that they are focused by drawing a focus rectangle, which is a dotted rectangle around the active object. So you don't really need to hide the selection because you can tell if the controlis active by the presence of absence of the focus rect.