Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. ADO and the DataGrid

ADO and the DataGrid

Scheduled Pinned Locked Moved Database
databasecssquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    soup
    wrote on last edited by
    #1

    Hi, First off, I'm using VC6 with the latest service pack and MDAC 2.6/2.7. I imported the ADO DLL. I have successfully got an app to talk to any database (via a connection string and OLEDB/ODBC) and I can place resulting recordset results into the DataGrid via use of the SetRefDataSource method. However, the DataGrid only accepts the ADO rs if it is disconnected. What I want to do (and I don't know if it's poss, but it sounds like it should be) is to query the database, keep the rs connected, set it into the DataGrid and further results be pulled in as (and when) the user scrolls down the results. I want this as some of our queries take some time and could return millions of rows. It would be nicer to respond quickly pulling back enough data to show in the grid and pull more results as the user scrolls. Is this possible? If so, how might I go about doing it? Thanks, Simon

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups