[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 218
  • Last Modified:

ListView lines

Hi guys,

Is there any way I can only draw the grid lines in a TListView when I want to?  EG.  I add a couple of items to the view without a grid line, then I add a couple more with the grid lines on.  Is that possible to do at all?

Thanks if you can help.

Stu.
0
Stuart_Johnson
Asked:
Stuart_Johnson
1 Solution
 
runebjCommented:
Yes it's possible. You have to set the OwnerDraw property to True and handle the OnCustomDraw, OnCustomDrawItem, and OnCustomDrawSubItem events to draw the ListView. You may also want to experiment with the OnAdvancedCustomDraw, OnAdvancedCustomDrawItem, and OnAdvancedCustomDrawSubItem events.

Sorry I don't have any code to get you started.

runebj
0
 
EpsylonCommented:
Hi Stu, have you seen this site already? Take a look at TAdvListView:

http://www.tmssoftware.com/
0
 
Stuart_JohnsonAuthor Commented:
Thanks for that, and sorry it took so long to grade your answer.

Stu.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now