ADAdministrator Syncfusion Team December 2, 2003 06:30 AM
I don''t really have a good suggestion for this. If you do not have too many hidden rows/columns, then you could just try unhiding them, calling resize to fit, and then rehiding them. Here is some code that resizes the columsn taking into account text in hidden rows.
bool save = this.grid.Model.Rows.Hidden.GetRange(1, this.grid.Model.RowCount);
this.grid.Model.Rows.Hidden.SetRange(1, this.grid.Model.RowCount, save, true);