shaneholmes
asked on
Dynamically Changing the Visibility of Columns of TListView
As I can tell, there is no Visibility property of the TListView Columns (TListColumn).
I need to add the option for configuring the TListview to allow the end user to check which columns they want visible.
How do I implement this feature.
Do I have to clear and recreate the columns each time, and then refill the items?
What I currently do is each time the end user checks on or off a column in the configuration dialog, I clear the list columns create them according to what they checked, and then refill the TListItems.
There has got to be a better way.
Shane
I need to add the option for configuring the TListview to allow the end user to check which columns they want visible.
How do I implement this feature.
Do I have to clear and recreate the columns each time, and then refill the items?
What I currently do is each time the end user checks on or off a column in the configuration dialog, I clear the list columns create them according to what they checked, and then refill the TListItems.
There has got to be a better way.
Shane
ASKER
Well, I kind of played with changing the width to zero, but I allow the user to drag the columns to the width of their choice, which makes for better viewing of some very large columns of strings.
When setting a columns width to zero and then attempting to drag the column before that column, your making that column with the width = 0 visible again.
Shane
When setting a columns width to zero and then attempting to drag the column before that column, your making that column with the width = 0 visible again.
Shane
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
GunDamn