Optimizing 'List control'

Bee

Registered User.
Local time
Today, 17:50
Joined
Aug 1, 2006
Messages
486
Hi,

Does anyone know if it's possible to make the column heads, column count, column width properties of a list box fit automatically according to the text they hold?

Any help will be very much appreciated.
B
 
I know there is a property called "Column Widths" that you can set manually but then this may not be what you are asking for. Column headings I believe take their width from this setting in "Column Widths" As to have them "automatically" adjust according to the size of the text in the list I cannot see why you would want that because typically, a list box will contain items of varying widths and so the only concern would be that the column is wide enough to display the longest item. Make sense? Or am I missing your point?
 
Debased said:
I know there is a property called "Column Widths" that you can set manually but then this may not be what you are asking for. Column headings I believe take their width from this setting in "Column Widths" As to have them "automatically" adjust according to the size of the text in the list I cannot see why you would want that because typically, a list box will contain items of varying widths and so the only concern would be that the column is wide enough to display the longest item. Make sense? Or am I missing your point?
my list box displays different queries depending on what the user selects from combobox. So, the number of headings...etc change with each query.

Also, I want the width of its columns to be big enough to show the heading of the column. It doesn't matter if some of the items are not appearing fully as long as the heading appears.
 

Users who are viewing this thread

Back
Top Bottom