I am working with summary in grid but summarycell for a particular column is bigger in size than the size of column. And i am not getting a way to autofit column size based on column header ,column cell's Value and summary cell for column.
is there any way where i can define column size to fit all values(header caption,summary values,and cell's value)?
or define column width based on summary cell?
Thanks
Yashpal Sharma
Yes, there are new overloads of the PerformAutoResize method which allow you to determine which factors should be considered, such as summaries, headers, and cells.
Did this ever get fixed? I have run into the same problem. I am running 10.2. I tried upgrading to 11.2, but that did not seem to help.
Thanks.
Hi,
Just FYI... we are planning to fix this in a future release. It will require the addition of some new method overloads and some new enum values for existing properties, though, so it will probably be added in v10.3 and probably in a service release, not the volume release.
Did you ever figure out how to do this?
Hi Yashpal,
So the PerformAutoResize does not account for the size of the summary? Hm, that's odd. That may be a bug.
There's another method on the column called CalculateAutoResizeWidth that calculates the width of the column without setting the width. This method has more options that PerformAutoResize, so maybe one of the options allows you to include the summaries.
If that doesn't work, then the only other option would be to measure the summary text yourself. Or report the issue of the PerformAutoResize method not accounting for summaries as a bug.