Hi Spotty
Thank you for your update.
Query : Any suggestions on ways to persist the column widths between uses of the application ?
Yes, you can able to maintain the columnWidth with MultiColumnTreeView. It has the support for calculating the width of the Nodes and SubItems by calculating the width of Text and images in it and assigns the largest node width to its column using AutoSizeMode property with different values as shown below. It has varies mode allows to maintain width between column and text .
|
- None : No sizing. Default column width or defined width set to column.
- AllCellsExceptHeader: Calculates the width of column based on cell contents. So that cell contents are not truncated.
- AllCells : Calculates the width of column based on header and cell contents. So, header and cell contents are not truncated.
- ColumnHeader: Calculates the width of column based on header content. So, header content is not truncated.
- AllCellsWithLastColumnFill : Applies AutoSizeMode.AllCells width to all the columns except last column which is visible and sets the maximum between last column auto spacing width and remaining width to last column.
- Fill :Divides the total width equally for columns.
- LastColumnFill :Applies AutoSizeMode.AllCells width to all the columns except last column which is visible and the remaining width from total width of the control is set to last column.
|
We have also attached the sample for the same from following location:
You can also refer the following link to know more about Autosize property.
Please try this suggestion and let us know if it is helpful.
Regards,
Vijayalakshmi VR