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

can I use Max or Min for string type for Summary Column of GGC ?

Thread ID:





88742 Aug 10,2009 10:54 PM UTC Aug 14,2009 11:39 AM UTC WinForms 4
Tags: GridControl
David Cui
Asked On August 10, 2009 10:54 PM UTC


For summary column of GGC, it works fine like SUM/MAX for numerical column.

can I use Max or Min for string type for Summary Column of GGC ?
if not, what is the workaround ?



Kathiresan M [Syncfusion]
Replied On August 11, 2009 10:15 AM UTC


I'm not very much clear with your query. What you do mean by MAX/MIN in string? Did you mean the characters count?

We've couple of samples demonstrating "Summary". Please refer the shipped sample from the below location regarding "Summary".

..\My Documents\syncfusion\essentialstudio\\Windows\Grid.Grouping.Windows\Samples\2.0\Calculate Summary


David Cui
Replied On August 11, 2009 12:37 PM UTC


Max is the same as TSQL .
Am I clear ?


David Cui
Replied On August 11, 2009 04:33 PM UTC

we want to extract group's child of some column's value (assume all of them value are the same) directly to Summary Row's certain column automatically (like you did sum/count for numerical fields) ?
am i clear ?


Rajadurai C [Syncfusion]
Replied On August 14, 2009 11:39 AM UTC

Hi David,

Thanks for your update.

If you would like to display the value of column(by which grid has been grouped) in the summary row, it can be achieved by handling the summary row in QueryCellStyleInfo event with the following code.

if (e.TableCellIdentity.TableCellType == GridTableCellType.SummaryFieldCell)
GridSummaryRow row = e.TableCellIdentity.DisplayElement as GridSummaryRow;
e.Style.Text = row.ParentGroup.Records[0].GetValue("Department").ToString();

Here is a minimal sample for your reference, in which the child groups has summary row with value of 'Department' column.



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