Is there any inbuilt functionality in ultrawingrid by which it changes color of the row based on some specified conditions.For example If a column having numeric value and we specify that all row having value of that column >5 should changes to specified color ....
Hi,
If you want to set this up at design-time, then the easiest way to do it is to use ValueBased Appearances. You can do this in the grid designer.
If you need to do this at run-time, because maybe your conditions are more complex or maybe your data source is not available at run-time, then you should use the InitializeRow event. There are tons of samples of this all over the place. I'm sure there is sample code in the help (code snippets), sample project (which install with the NetAdvantage SDK), the Infragistics Knowledge Base (HOWTO:How would I color a Cell in the UltraGrid based upon what has been entered into the cell?), and right here in the forums (WinGrid Performance Guide ).
Ok , can you please write me what i've to do to achieve what you are saying.
Is there any properties or something like that...
As you've probably found, there's the idea of Condional Formatting in the WinGrid - but it applies to a column, not a row. You can set up the same condition on each column, which would give you the same general effect that you're looking for. Aside from that you can use the InitializeRow event to apply any special style to individual rows.
Hope this helps,
-Tony