Home Forums WinForms controls Xceed Grid for WinForms How do I have a column fill remaining width? Reply To: How do I have a column fill remaining width?

User (Old forums)
Member
Post count: 23064

There is no property you can set to get a column to fill the available space. You need to handle this yourself.

Basically, you need to calculate the space that is left and set your last column’s width to it. You need to use the GridControl ClientRectangle, minus the RowSelectorPane, if applicable the VerticalScrollbar, and the Visible Columns. You will need to handle the ScrollBarsChanged event to change the width when the scroll bar appears/disappears.

Imported from legacy forums. Posted by André (had 416 views)