1- First, this application is made by Microsoft, so of course we don’t have the source code, and so we don’t actually know how they setup our grid to do what they want. Second, there is no out-of-the-box feature that will allow you to do this.
Here are some suggestions of what you can do.
To set the columns to fill the grid, 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.
As for not permitting a column to become too wide, you could handle the WidthChanged event on the Column, calculate the width of all the elements of the grid (e.g. all columns, RowSelectorPane, etc…) and not let the width of the current column get to a point where the total width gets bigger than the totally width of the grid.
2- Set the AllowColumnReorder property of the ColumnManagerRow to false.
Imported from legacy forums. Posted by André (had 307 views)