This project is read-only.

resize column width when grid width changes

Aug 24, 2009 at 7:25 AM


We have a situation where grid size changes on user action. At that time how to change the column width also proportionally?


Aug 24, 2009 at 10:25 AM

You should have at look at the "Real Grid generic feature" example (#1).

There are some functions/properties that will help you, like "grid.AutoStretchColumnsToFitWidth = true", "grid.Columns[#].AutoSizeMode", "grid.Columns.StretchToFit()" and/or "grid.AutoSizeCells()"