How, in a GridControl, do I get the grid to automatically adjust the row height''s of the header rows to accomodate the header row''s text when it wraps (or when a user shrinks or expands the column width)?
ADAdministrator Syncfusion Team November 1, 2004 06:22 AM
You have to explicitly call
grid.Model.RowHeights.ResizeToFit, passing a range object and an options object. To resize headers, you need to make sure the options have the IncludeHeaders flag turned on.
ADAdministrator Syncfusion Team November 1, 2004 02:02 PM
I had to put the ResizeToFit call in a couple places (after I load the data into the grid and then again inside a ColWidthsChanging handler) and then that worked.
Is there no way to flag a particular row so that it is automatically resized when it''s cells'' content or width has changed?
If not, can I put that in as a feature request?
ADAdministrator Syncfusion Team November 1, 2004 02:17 PM
There is a AutoSize style property that you can set which will allow the cell to autosize as your user types into the cell. But if you programatically change the cell value, then you have to explicitly call ResizeToFit.