BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
ExpressionFieldDescriptor exp1 = new ExpressionFieldDescriptor("Winning %", "([wins] *100)/([wins]+[ties]+[losses])", "System.Double");
ExpressionFieldDescriptor exp1 = new ExpressionFieldDescriptor("Loosing %", "([losses] *100)/([wins]+[ties]+[losses])", "System.Double");
//Adds expression fields to the grid table.
this.gridGroupingControl1.TableDescriptor.ExpressionFields.AddRange(new Syncfusion.Grouping.ExpressionFieldDescriptor[] { exp1, exp2 });
here is my code
ExpressionFieldDescriptor exp1 = new ExpressionFieldDescriptor("Totaal", "[Cost]*2", "System.Double");
this.gridGroupingControl1.TableDescriptor.ExpressionFields.Add(exp1);
can someone please tell me what i am doing wrong
//Argument 1: Total is the mapping name of the column which we want to apply the Expression
//Argument 2: Expression like "[Column2] * 2 " Computation with other column values( here "Cost" is another Column name).
ExpressionFieldDescriptor exp1 = new ExpressionFieldDescriptor("Total", "[Cost]*2", "System.Double");
//Adding the expression field to the columns
this.gridGroupingControl1.TableDescriptor.ExpressionFields.Add(exp1);
Sample:
http://www.syncfusion.com/downloads/support/forum/120181/ze/Expression_Fields-1483031551
Regards,
Adhi.