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.
LVL 6
Stuart_JohnsonAsked:
Who is Participating?
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.