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
325
Summary width
posted

I have a summary row at the bottom of my wingrid, with some extra text the users have required to identify exactly what what being totaled and some totals within that total (I get these by running a Loop for each row).

 Anyway, it works great, all my information comes through in the summary row correctly.

The problem I am having is the information is quite a bit wider than the column being totaled.  I could widen this column to display the summary correctly, but it leaves the grid looking funny and forces a horizontal scroll bar.

 Is there anyway I can widen just the Summary column, and not the entire grid column, or set the summary column to print out expanding over other columns summary fields (which are not being used)?

 If not, is there another way I can get around this so that I can display the correct summary information.

 Thank you for your help.

 T.J.

Parents
  • 469350
    Offline posted

    Hi T.J.,  

          When you create the summary, you are probably setting it to align to the column it is summarizing. If that's the case, then the summary width will always be the width of the column.

        One option would be to specify a location for the summary using an enum instead of a column. There are overloads of the Summaries.Add method that all you to specify that the summary is aligned Right, Left, or Center instead of linking it to the column. This way the summary will be 1/3 of the width of the band. 

        The other option would be to use a CreationFilter to change the rect's of the UIElements that make up the summary.  

     

Reply Children