Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data aware TListView

Status
Not open for further replies.

hansaplast

Programmer
Dec 17, 2001
61
NL
Hi,

I want to make TListView columns data aware.
I've created a new component derived from TListView called TDBListView, added a DataSource property to the new component.
However the Columns property of TListview is by default NOT data aware. I would like to have a (design time) data aware Columns property like the one TDBGrid::Columns uses.

I have no Idea how to aproach this problem.
How can I make (column) items data aware at design time?

Thanks.
 
Howdy,

All the data you need to construct a Columns property similar to one in a TDBGrid should be contained in the DataSource.

TDBGridColumns objects only have 5 properties:

Grid
Items
State
Count
ItemClass

Assuming you created your column class with these same properties, you should have all the information you need to create them for your new TDBListView class at will.

Good luck,
onrdbandit

No! Try not. Do, or do not. There is no try. - Yoda
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top