Home Forums WinForms controls Xceed Grid for WinForms Function like FillWeight

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #14863 |

    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)

    User (Old forums)
    Member
    Post count: 23064

    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)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.