We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridGroupingControl and ExpressionFields

Thread ID:





58210 Mar 20,2007 07:33 PM UTC Mar 22,2007 10:21 PM UTC ASP.NET Web Forms (Classic) 1
Tags: Grouping
David Cyr
Asked On March 20, 2007 07:33 PM UTC

I'm looking for some help in adding an ExpressionField to a GridGroupingControl. I've bound a the control to datasource and added at run time an ExpressionFieldDescriptor to the TableDescriptor.ExpressionFields collection. However, the expression column doesn't render so i know I've missed something along the way. I've attached some code for review. Any help would be greatly appreciated.




Gokul B [Syncfusion]
Replied On March 22, 2007 10:21 PM UTC

Hi David,

Thanks for your sample code.

We can able to reproduce the issue as you mentioned. The problem is ExpressionFieldColumn fails to render whenever we use SummaryRow. So you have to create one bound column.Here Bound column name should be same as ExpressionFieldDescriptor name. please have a look at the below code snippet.

''Creates bounds column and it will add to the end of Column Collection

Private myExpression As ExpressionFieldDescriptor = New ExpressionFieldDescriptor()
Private myExpression.Name = "Total"
''Creates an Expression Column
Private myExpression.Expression = "[Freight]* [Freight]"

Try this and let us know if the problem still exists.

Thanks for using Syncfusion products.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon