Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
490
Programmatically enabling and configuring summary rows in XamGrid
posted

I have a context menu item that switches the summary row on and off. I've implemented it via the following:

this.MyXamGrid.SummaryRowSettings.AllowSummaryRow = this.ShowGeneralTotals? SummaryRowLocation.Bottom : SummaryRowLocation.None;

I have a few question related to this.

1. However, when I switch the summary row on, I see the sigma sign on the header. I need to switch the sigma sign off. So that it shouldn't be displayed and the user shouldn't be able to interact with this.

2. In the summary row, I only need to see the total of the column, only the number without any text.

3. When the grouping is switched on, in addition to the summary row of the overall grid, I need a summary row for each group. We were able to implement this in UltraGrid (WinForms) with the enum SummaryDisplayAreas.  However, SummaryRowLocation doesn't have similar values.

Are these items feasible to implement in XamGrid? What is the best way to approach each item?

Parents
  • 138253
    Verified Answer
    Offline posted

    Hello Burak,

     

    Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I copied the default Style of the HeaderCellControl and commented the Summary button. I also set the SummaryDisplayTemplate of the SummaryRowCellControl and removed the text and the “=”. As for the summary in each group, I can say that this is the default behavior of the XamGrid. Please let me know if you need further clarifications on this matter.

     

    Looking forward for your reply.

    XamGridSummaryAndGrouping.zip
Reply Children