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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

show sum of the time column in GGC (ver : 7.2.0.37 )

Thread ID:

Created:

Updated:

Platform:

Replies:

103577 May 14,2012 09:03 AM UTC May 15,2012 04:33 AM UTC Windows Forms 1
loading
Tags: Grouping
Ali
Asked On May 14, 2012 09:03 AM UTC

i m using 7.2.0.37 and want to show sum of the time column in GGC , please help me and send a sample if it is possible ,

 Regards
A.Abedini

Asarudheen S [Syncfusion]
Replied On May 15, 2012 04:33 AM UTC

Hi Abedini,

 

Thank you for your interest in Syncfusion products.

 

You can achieve the reported behavior “sum of the time column in GGC” through the feature expression column. A sample regarding   this has been shipped   in the our dashboard. Please refer the following location for the sample.

 

..\..\AppData\Local\Syncfusion\EssentialStudio\10.2.0.55\Windows\Grid.Grouping.Windows\Samples\2.0\Filters and Expressions\Expression Field Demo

 

Please refer the following code to make the sum for the time column.

 

          string expressionName = "Expression 1";

                GridColumnDescriptor gridExprColumn = new GridColumnDescriptor();

            gridExprColumn.MappingName = expressionName;

            this.gridGroupingControl1.TableDescriptor.Columns.Add(gridExprColumn);

           

            this.gridGroupingControl1.TableDescriptor.ExpressionFields.Add(expressionName);

       

 

            this.gridGroupingControl1.TableDescriptor.ExpressionFields[expressionName].Expression = "[Time1] +[Time2]";

            this.gridGroupingControl1.TableDescriptor.ExpressionFields[expressionName].ResultType = "System.Date";

            this.gridGroupingControl1.TableDescriptor.VisibleColumns.Insert(index, expressionName);

 

Please let us know if you need any further assistance.

 

Regards,

Asaryudheen.


CONFIRMATION

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.

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

;