Home Forums WinForms controls Xceed Grid for WinForms Autosize grid column Reply To: Autosize grid column

User (Old forums)
Post count: 23064

Hi Mac,

yes, that’s it. Retrieve the width of the entire grid, subtract all other columns and set the filler column to the rest width. Use also a default minimum in case your grid is too small to display all columns. Placing the function into the resize-event updates the column widths not only on initialization but also when you resize the window (as the even says…. 😉 ). You might do some fine tuning then, actually I did not get it that there is really no white space at the right, currently there are always some pixels, but I did not investigate too much on that….

Imported from legacy forums. Posted by Kai (had 389 views)