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. Image for the cookie policy date

Column Widths, ResetWidth(), and ShowCaptionSummaryCells == true

It is required that we set ShowCaptionSummaryCells == true, and that a caption summary row is displayed. The problem I''m hitting is that the ResetWidth() method when called a grouped column, does not seem to take into account the width of any group caption rows, only the data rows. This results in group rows where the text on the grouped column is not visible. What is the best way of solving this problem? TIA, D.

1 Reply

AD Administrator Syncfusion Team October 8, 2004 01:19 PM UTC

Hi Dominic, you are right - when column widths are calculated right now only the contents of records are considererd. To fix this problem we recently added a new member property to GridSummaryColumnDescriptor. It is called MaxWidth and allows you to specifie the maximum length of the formatted text for this summary column. This value will be used for calculating the optimal width of a column. The default is the length of the Format text plus 5. We are also trying to find a solution to make this automated but don''t have anything in place for that yet. With code the only way around is to manually set the column width. Stefan

Live Chat Icon For mobile
Up arrow icon