7 Answers, 1 is accepted
Use the bestfit property of the columns.
column.columns (i) .bestfit()
This functionality is not available in RadListView, however, you can easily implement a similar one. For example, you can use the Resize event to set the column width:
I hope this will be useful. Let me know if you have additional questions.
Yes, I know about BestFit(), but this doesn't do what I want it to. I have my columns set to a specified min width size. So, these columns will fit perfectly when the form is set to it min size. When I resize the form, my control resizes as well, however, unlike a GRID's columns that has an AutoSizeMode.FILL, which will resize the columns so they fill the control (no dead space on the right side of the control). However, as I discovered and Dimitar pointed out, this functionality doesn't exists for a ListBox control. Yes, BestFit will resize the columns based on the AutoSizeMode of the control (which can be based on the header, cell contents, both or none), it will not FILL the control, therefor, leaving ugly dead space in the control. I believe Dimitar's solution will work. I am going to try that out.
Yes, voting for a particluar item will increase its priority. However, I cannot provide a timeframe for this one. Please follow the item and you will be notified when its status changes.
Do not hesitate to contact us if you have other questions.