Home Forums WinForms controls Xceed Grid for WinForms How to set Column Widths on DetailGrids? Reply To: How to set Column Widths on DetailGrids?

User (Old forums)
Post count: 23064

Hi uasking

Thanks for the reply, it’s a technique similar to the one of the many I have tried. Did you place this code in a specific event? I’ve tried in both the master grids resize event and in the host forms resize event with no luck, it just seems to ignore any value I apply to the columns width property. The only time I seem to be able to get a value to stick is when I am adding the columns. It also seems that the Columns GetFittedWidth() method always returns zero when called against a column in a DetailGrid and if you use the cells parent columns GetFittedWidth it returns an index out of bounds exception!!

Any other ideas greatly appreciated.


Imported from legacy forums. Posted by geoffhop (had 288 views)