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
20
Cell stylings for groupby row
posted

Hi,

I'm updating an application from Winforms to WPF. Previously in the Winforms application we have a grid which shows a set of instrument positions, and when we use the Groupby function of the grid we automatically sum all of our dated positions values like below:

In the WPF version of this grid view grouping causes the grid to look as below (note that the summing of the first date column was turned on by hand):

 

How would I go about doing the following in order to make the WPF app look and act like our existing Winforms one:

  • Automatically sum the values of the date column
  • Style the groupby bar to look like a grid row with cell borders
  • Remove the "Sum =" part of all the summary values

Thanks in advance

Parents
No Data
Reply
  • 69686
    posted

    Hello,

    Yes you can achieve all of these requirements

    1. Please follow this thread for more information : http://community.infragistics.com/forums/p/35431/207331.aspx#207331

    2. For this, you would have to create style for the SummaryResultPresenter element, which represents the summary value and create a border around it. Moreover, you can find its default style in the DefaultStyles directory in the Infragistics folder.

    3. This is controlled by the StringFormat property of the SummaryDefinition object. You can find examples of this in the XamFeatureBrowser under XamDataGrid - Row Summaries - formatting row summaries

Children
No Data