?
Solved

ListView lines

Posted on 2000-03-23
3
Medium Priority
?
215 Views
Last Modified: 2010-04-04
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
Comment
Question by:Stuart_Johnson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 1

Accepted Solution

by:
runebj earned 200 total points
ID: 2652251
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
 
LVL 13

Expert Comment

by:Epsylon
ID: 2652353
Hi Stu, have you seen this site already? Take a look at TAdvListView:

http://www.tmssoftware.com/
0
 
LVL 6

Author Comment

by:Stuart_Johnson
ID: 2754010
Thanks for that, and sorry it took so long to grade your answer.

Stu.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question