Home Forums WinForms controls Xceed Grid for WinForms OnResize() Reply To: OnResize()

User (Old forums)
Post count: 23064

To save the state of the grid (order, size and sorting of columns, but not grouping): see <a href=”http://www.xceedsoft.com/Forums/ShowPost.aspx?PostID=1723″>http://www.xceedsoft.com/Forums/ShowPost.aspx?PostID=1723</a&gt;.

For resizing columns: catch the Resize-event of the grid-control, and set the Width-property of your columns manually, in the eventhandler. If you really need this, you’ll also have to either disable manual resizing of the columns by the user, or deal with that too.
And how should they resize? Proportionally (each column = x% of total width)? A different approach is to let all columns have a static width, except 1 column whose width will be gridWidth – sumOfWidthOfOtherColumns.

Imported from legacy forums. Posted by Tommy (had 3119 views)