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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

List Control problem

Status
Not open for further replies.

JPHssi

Technical User
Apr 23, 2004
3
FI
Hello,

I have a problem with populating a list control.
I have SDI program with database support created (Access used). There are working adding, updating and deleting buttons. So the connection with the database works.
I have also a button that opens up a new dialog to show the records from the database as a list in a list control. Here is the problem.
I cannot get the records into the list control.

I would be very pleased with any help on this one.
 
I assume your list control is a report type. If so, add the columns, set their widths, and then SetItem and SetItemData as necessary.

Matt
 
Yes, the list control is a report type. I got the columns and their headers in, but still haven't got the items from the database inserted into the list control.

From the other thread I got that the headers for the columns are created in the OnInitDialog.

What kind of function and where should it be placed to insert the items from database?? Haven't figured that out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top