How to change backcolor row in Janus Grid with condition

Pouya picture Pouya · Dec 10, 2011 · Viewed 8.8k times · Source

How can I change the backcolor row GridEx(GridJanus) with a condition in c#

thanks

Answer

John Laffoon picture John Laffoon · Dec 10, 2011

I can't link to it directly, but I found this in a post by Ravi Kota on the Janus Systems forums. I'm not able to test this at present and it is an older post... Conceptually it looks right though.

GridEXFormatCondition fc;

fc = new GridEXFormatCondition(GridName.RootTable.Columns[ColumnName], ConditionOperator.GreaterThan, 0);

fc.FormatStyle.ForeColor = Color.Blue;

GridName.RootTable.FormatConditions.Add(fc);