I have a grid that is bound to a collection of objects. There are cases where I need to change the foreground color of a specific cell in a row to red. I have this working except for when the row is selected. When a row is selected the text color for all of the cells in the entire row changes to white. When that happens the user cannot tell that the cell in question is red until he selects a different row. How can I keep the formatting of my cell even when the row is selected?
Thanks,
Matt
There are easier ways than using a DrawFiler.
For one thing, you could set the ActiveAppearance and/or SelectedAppearance on the cell. By applying the same ForeColor to the SelectedAppearance as you did to the Appearance, the cell would maintain it's ForeColor, even when selected.
Another option would be to use the SelectionOverlay feature instead of the default solid-color selection. This way, the selection appears as a semi-transparent overlay on top of the existing colors, like in Excel.
Hello ,
Appearance objects are applied based on the hierarchy, and selected and Active row appearance are with high priority. On this way end user always know which exactly row is selected and which is active. Ultimately customer know which rows he was selected. That is why and UltraGrid works on this way. However you could use IUIDrawFilter interface in order to control drawing process of UltraGrid components. I’ve implemented simple sample for you, it is with Infragistics 14.1 and the same approach also should works with Infragistics 8.2.
I hope that this will helps you.