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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Customizing Summary Rows

Thread ID:

Created:

Updated:

Platform:

Replies:

54785 Jan 17,2007 05:44 PM UTC Jan 18,2007 10:52 AM UTC WinForms 1
loading
Tags: Grouping
Mohan Ranganna
Asked On January 17, 2007 05:44 PM UTC

Hi,

I am using Syncfusion Grouping Grid Control 3.3.0.0 in a windows application running on .NET 1.1.

The grouping grid supports multiple groups (not using nested tables). A summary row in the grid displays the sum of the values for each group. To achieve the desired functionality, I am making use of the grid's default totalling with the use of SummaryType.DoubleAggregate.

I now need to ensure that the sum for the outermost group should not be shown if the group's displayed text is "XYZ".

I believe I could customize it using SummaryType.Custom and doing a custom totalling. Is there any other approach to achieve this?

Regards,
Mohan

Administrator [Syncfusion]
Replied On January 18, 2007 10:52 AM UTC

Hi Mohan,

Thanks for being patience.

You can handle the QueryCellStyleInfo event and customize the summary value for the required group. Please refer to the following code snippet for more details.

>>>>>>>>>> Code Snippet <<<<<<<<<<<<
//QueryCellStyleInfo event
if (e.TableCellIdentity.TableCellType == GridTableCellType.SummaryFieldCell)
{
Element el = e.TableCellIdentity.DisplayElement;
if (el != null)
{
Group g = el.ParentGroup;
if (g.Category != null && g.Category.ToString() == "xyz")
{
===
}
}
}
>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<

Kindly let us know if you need any further assistance.
Have a nice day.

Best regards,
Madhan

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

;