I am trying to understand how to put to use the Conditional Formatting Dialog. There is a boolean value on each row of data that will indicate if a row in the UltraWinGrid should be highlighted or not. I opened the Conditional Formatting Dialog for the boolean value, created a True Condition and set the appearance the way I want it. Now how do I get that appearance to apply to a row?
Sam
Mike,
Attached is a demo of what I am trying to do... This little app should show a lot of names, first and last, in a WinGrid. there is a third property on the person object called IsHighlighted. The objective is to highlight the two names, such that the background is yellow, when the IsHighlighted is true.
The idea is that when the user clicks the button at the bottom of the form, it will iterate through the data source flipping the IsHighlighted flag and the UltraGrid needs to update correctly, too.
Hi Sam,
Assuming that your grid is bound to the data source at design-time, then you shouldn't have to do anything else. You just add the condition and apply some properties to the Appearance for that condition and that's it.
If it's not working, then my best guess is that the grid is losing the layout from design-time to run-time. Maybe your code is loading a layout into the grid?