Filling up ListControl from a SQL query

Hello,

I use MFC ListControl. Is there any way to fill it up using SQL query without adding one row at a time

All I could find was m_List.InsertItem(...) and m_List.SteItemText(...)

Are there any other ways

Thanks



Answer this question

Filling up ListControl from a SQL query

  • websoon

    Thanks a lot for the reply.

    Could you give me an example of how to do that or point me to where I can read about it. Thanks again


  • Andr0id

    One possible way to do this is using virtual listctrl:

    Fill(insert) the list items with bound data addresses first, then do SQL fetch for the result.



  • Praveen Kumar A

  • Filling up ListControl from a SQL query