gwarguitar
asked on
Populate ListView (report) based on column caption
I've struggled with this for a few days...
basically i had a LOT of code to do one simple task.
populate a listview (report mode) based on what view the user is in.
i.e...
column[0].caption may = 'First Name' or it may = 'Last Name'
so if column[0] = 'Last Name' i want the last name to go there then continue down the columns adding subitems.
i'm sure there is a simple way to do this, but i haven't quite figured it out. any help?
basically i had a LOT of code to do one simple task.
populate a listview (report mode) based on what view the user is in.
i.e...
column[0].caption may = 'First Name' or it may = 'Last Name'
so if column[0] = 'Last Name' i want the last name to go there then continue down the columns adding subitems.
i'm sure there is a simple way to do this, but i haven't quite figured it out. any help?
I used to move columns that way until I found Mike Lischke's VirtualTreeView. The VirtualTreeView paradigm is completely different than TListView, so it's hard to learn, but it supports everything I have ever wanted it to do with no hacks or workarounds or inefficient updating code. It also does some amazing things that TListView can't do at all.
For more information, please see http://www.delphi-gems.com/VirtualTreeview/VT.php
For more information, please see http://www.delphi-gems.com/VirtualTreeview/VT.php
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Rearranging columns in TListView:
https://www.experts-exchange.com/questions/20998498/Rearranging-columns-in-TListView.html
//........
Using ListView:
https://www.experts-exchange.com/questions/21090603/Using-ListView.html