Highlight/format highest value

Hi,
How do I conditionally format the highest/lowest values in a numerical column? E.g. change the colour of the text of the highest value.

2 Replies

RS Rajarajeswari S Syncfusion Team September 25, 2007 07:14 AM UTC



Hi,

Thanks for using Syncfusion products,

GridConditionalFormatDescriptor is used to fromat the Grid Grouping Controll,but it does not support any predifined formula for finding the Max value in a particular column. Using sorting techniques we can find out the Maximum value and then we can apply the FormatDescriptor to the Max value.

Please refer the below code snippet which illustrates this,

gridConditionalFormatDescriptor1.Expression = "[ID]=" + no[0].ToString();

In the above code no[0] is a Maximum value.

Please refer the sample from the below link which illustrates the above,

http://websamples.syncfusion.com/samples/Grid.Windows/F68248/main.htm

Regards,
S.Rajarajeswari


PJ Palak Jain June 23, 2010 02:31 PM UTC

I have a similar issue, I need to highlight the minimum of a column and maximum of another column per group. The datasource updates in real-time and the new minimum and maximum of every group should get highlighted.

Loader.
Up arrow icon