Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4596802
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T23:10:00+00:00 2026-05-21T23:10:00+00:00

In my ASPxGridView , I getting total simply IPOTEK column in footer with this

  • 0

In my ASPxGridView,

I getting total simply IPOTEK column in footer with this code;

<TotalSummary>
<dx:ASPxSummaryItem FieldName="IPOTEK" SummaryType="SUM" ShowInGroupFooterColumn="IPOTEK" DisplayFormat="n0" />
</TotalSummary>

And i getting average value of IPOTEK column when i grouping in Group’s footer.

<GroupSummary>
 <dx:ASPxSummaryItem FieldName="IPOTEK" SummaryType="AVERAGE" ShowInGroupFooterColumn="IPOTEK" DisplayFormat="n0" />
</GroupSummary>

Everything is OK. For example when i grouping with, it looks like this; (IPOTEK column is starting 109.827)

enter image description here

What i want is; in TotalSummary, only total of GroupSummary values for IPOTEK column.

Rigth now, for this data adding TotalSummary value 109.827 * 3 = 329.481 (GroupSummary * 3)

What i want, for this data adding only and only GropupSummary value to TotalSummary.

How can i do that?

Best Regards, Soner

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T23:10:00+00:00Added an answer on May 21, 2026 at 11:10 pm

    Well, there is no a straightforward solution to this task. I see two alternatives:

    1) use a custom summary for the footer summary and at the stage of the DevExpress.Data.CustomSummaryProcess.Finalize try to run through all group rows, obtain the corresponding summary values and sum them. To run through group rows, use the following code:

    protected void ASPxGridView1_CustomSummaryCalculate(object sender, DevExpress.Data.CustomSummaryEventArgs e) {
        if(e.SummaryProcess == DevExpress.Data.CustomSummaryProcess.Finalize) { 
            ASPxGridView grid = sender as ASPxGridView;
            double total = 0;
            for(int i = 0; i < grid.VisibleRowCount; i++) 
                if(grid.IsGroupRow(i)) 
                    total += Convert.ToDouble(grid.GetGroupSummaryValue(i, grid.GroupSummary[0]));
            e.TotalValue = total;
            e.TotalValueReady = true;
        }
    }
    

    2) use a label within the column’s FooterTemplate container and handle the GridView’s PreRender and BeforeGetCallbackResult to set this label value. The value should be calculated using the code above.

    I hope, this helps.

    UPDATE

    why are using this code:

    if (grid.IsGroupRow(7))
    

    7 is a visibleRowIndex, you should pass the i parameter there

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASPxGridview like this: Is there any way calculate Total of GroupSummary
I need to change ASPxGridView SettingsLoadingPanel dynamically (from code behind if is possible). For
I'm trying to add column to ASPxGridView which would have link to other page:
I have an ASPxPopupControl and an ASPxGridView. Inside this PopupControl i have my own
I have a ASPxGridView with a combobox column. Now i want to bind a
I have a ASPxGridview (Normally 21 column but i just want process 4 column).
The default behavour When I configure total summaries, with the <TotalSummary> node of my
In a DexEpress ASPxGridView I have a column that contains voltage. The original values
First question how to add custom column to aspxgridview column using looping to get
I have a aspxgridview with details row. in detils row of this gridview, there

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.