Click here to Skip to main content
15,897,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DAO/ADO/ODBC Pin
Tara142-Aug-06 21:29
Tara142-Aug-06 21:29 
GeneralRe: DAO/ADO/ODBC Pin
Jonathan [Darka]2-Aug-06 21:31
professionalJonathan [Darka]2-Aug-06 21:31 
GeneralRe: DAO/ADO/ODBC Pin
Tara142-Aug-06 21:50
Tara142-Aug-06 21:50 
AnswerRe: DAO/ADO/ODBC Pin
Viorel.2-Aug-06 21:26
Viorel.2-Aug-06 21:26 
GeneralRe: DAO/ADO/ODBC Pin
Tara142-Aug-06 21:32
Tara142-Aug-06 21:32 
GeneralRe: DAO/ADO/ODBC [modified] Pin
Phil.Benson3-Aug-06 0:05
professionalPhil.Benson3-Aug-06 0:05 
GeneralRe: DAO/ADO/ODBC Pin
Tara143-Aug-06 1:54
Tara143-Aug-06 1:54 
GeneralRe: DAO/ADO/ODBC Pin
Phil.Benson3-Aug-06 2:17
professionalPhil.Benson3-Aug-06 2:17 
I would consider the following:


Both lists should be virtual, this means that you must provide the information to be displayed as needed by the list control. There are lots of tuts on Code Project regarding virtual lists.

When you load the information from the DB, set the number of rows for each list useing the method I described in my last post. Keep a member variable of the DB, and an index of the current record, as an absolute value. When the list wnats to display a specific row, it will request the item value to be displayed, i.e. row 0, subitem 0, 1, 2, 3, etc. This you can do on the fly, reading the row from the DB, getting the corresponding sub item (field) and displaying it. I know this may seem slow, but it works a treat, as only the information that is to be ACTUALLY DISPLAYED is required.

As for your secondary list that is to display information, I would suggest that you create a query def using the information provided from the main table...

mfg

Phil



Who the f*** is General Failure, and why is he reading my harddisk?

GeneralRe: DAO/ADO/ODBC Pin
Tara143-Aug-06 22:19
Tara143-Aug-06 22:19 
GeneralRe: DAO/ADO/ODBC Pin
Tara142-Aug-06 21:48
Tara142-Aug-06 21:48 
Questionget date from COleDateTime Pin
Sam_the_xalan2-Aug-06 20:21
Sam_the_xalan2-Aug-06 20:21 
AnswerRe: get date from COleDateTime Pin
Steve Echols2-Aug-06 21:12
Steve Echols2-Aug-06 21:12 
QuestionFile does not open Pin
Ratish Philip2-Aug-06 19:52
Ratish Philip2-Aug-06 19:52 
AnswerRe: File does not open Pin
Christian Graus2-Aug-06 19:58
protectorChristian Graus2-Aug-06 19:58 
AnswerRe: File does not open Pin
toxcct2-Aug-06 20:45
toxcct2-Aug-06 20:45 
AnswerRe: File does not open Pin
Sarath C2-Aug-06 21:22
Sarath C2-Aug-06 21:22 
QuestionQuestion: @ DavidCrow about NetUserGetInfo() Pin
Programm3r2-Aug-06 19:50
Programm3r2-Aug-06 19:50 
AnswerRe: Question: @ DavidCrow about NetUserGetInfo() Pin
Hamid_RT2-Aug-06 20:28
Hamid_RT2-Aug-06 20:28 
QuestionRe: Question: @ DavidCrow about NetUserGetInfo() Pin
Programm3r2-Aug-06 20:39
Programm3r2-Aug-06 20:39 
AnswerRe: Question: @ DavidCrow about NetUserGetInfo() Pin
ThatsAlok2-Aug-06 22:03
ThatsAlok2-Aug-06 22:03 
AnswerRe: Question: @ DavidCrow about NetUserGetInfo() Pin
toxcct2-Aug-06 20:43
toxcct2-Aug-06 20:43 
QuestionRe: Question: @ DavidCrow about NetUserGetInfo() Pin
Programm3r2-Aug-06 20:49
Programm3r2-Aug-06 20:49 
AnswerRe: Question: @ DavidCrow about NetUserGetInfo() Pin
toxcct2-Aug-06 20:55
toxcct2-Aug-06 20:55 
QuestionRe: Question: @ DavidCrow about NetUserGetInfo() Pin
Programm3r2-Aug-06 20:58
Programm3r2-Aug-06 20:58 
GeneralRe: Question: @ DavidCrow about NetUserGetInfo() Pin
Hamid_RT2-Aug-06 21:03
Hamid_RT2-Aug-06 21:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.