I have created a UserControl containing only an UltraListView. I have added it to my form, and associated it with a PopupControlContainerTool. Before I show the popup I want to set the size of the control based on the items in the list view. The list view is in "List" mode, with a single column and checkboxes displayed. I want to find the width of the widest item in the list, and use that with some padding for the width of the entire control.
Any ideas?
You can handle the BeforeToolDropdown event of the UltraToolbarsManager. When it is the PopupControlContainerTool which is about to drop down, set th eproper size on your UltraListView.