Writing if else like expression

Please suggest me if it's possible to write an expression field based on a conditional column value something like:

in short how can i write if else like expression that achieve the below?

Syncfusion.Grouping.ExpressionFieldDescriptor exp1;

if (SomeColumn.Value < 10 )
{
exp1 = new Syncfusion.Grouping.ExpressionFieldDescriptor("Winning %", "expression1", "System.Double");
}
else
{
exp1 = new Syncfusion.Grouping.ExpressionFieldDescriptor("Winning %", "expressoin2", "System.Double");
}





3 Replies

JS Jeba S Syncfusion Team January 13, 2008 01:25 PM UTC

Hi John,

Please refer the below forum thread for details:

http://www.syncfusion.com/support/forums/message.aspx?MessageID=63854

Kindly let us know if you need any further assistance.

Best Regards,
Jeba.



JR John Ruiz January 13, 2008 01:41 PM UTC


>Hi John,

Please refer the below forum thread for details:

http://www.syncfusion.com/support/forums/message.aspx?MessageID=63854

Kindly let us know if you need any further assistance.

Best Regards,
Jeba.




Thanks a bunch... glad to see I am not the only one working on sunday :)



JS Jeba S Syncfusion Team January 14, 2008 12:06 AM UTC

Hi John,

Thank you for your update.

Best Regards,
Jeba.




Loader.
Up arrow icon