Home › Forums › WinForms controls › Xceed Grid for WinForms › Function like FillWeight
Is there a function like FillWeight in DataGridView in the Xceed datagrid, so that the column with is always adjusted to the size of the form?
Imported from legacy forums. Posted by asdf (had 1835 views)
There is no property that will do it for you. You will need to get the width of the grid, and adjust the last column width to fill the space.
To calculate the width of the grid, you can use the GridControl ClientRectangle, minus the RowSelectorPane, the VerticalScrollbar (if applicable), and the Visible Columns.
Imported from legacy forums. Posted by André (had 2679 views)