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. General Programming
  3. C / C++ / MFC
  4. Using MSFlexGrid and CRecordset

Using MSFlexGrid and CRecordset

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorial
4 Posts 3 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.
  • C Offline
    C Offline
    Cybernate
    wrote on last edited by
    #1

    Hi, I am trying to populate the MsFlexGrid control by using the SetDataSource property of the MSFlexGrid COntrol.. but I am getting the "Type Mismatch" error. can anyone tell me how to use MSFlexGrid and CRecordset together in an app. Regards, Sylvester12

    D 1 Reply Last reply
    0
    • C Cybernate

      Hi, I am trying to populate the MsFlexGrid control by using the SetDataSource property of the MSFlexGrid COntrol.. but I am getting the "Type Mismatch" error. can anyone tell me how to use MSFlexGrid and CRecordset together in an app. Regards, Sylvester12

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Sylvester12 wrote: ...but I am getting the "Type Mismatch" error. can anyone tell me how to use MSFlexGrid and CRecordset together in an app. Not without seeing a relevant code snippet.


      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

      A 1 Reply Last reply
      0
      • D David Crow

        Sylvester12 wrote: ...but I am getting the "Type Mismatch" error. can anyone tell me how to use MSFlexGrid and CRecordset together in an app. Not without seeing a relevant code snippet.


        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        Hi, Here is the piece of code thats cauing the error: m_DataSource is an object of CRecordset which contains records from a database table. m_Grid.SetDataSource(NULL); m_Grid.SetDataSource( (LPDISPATCH) m_DataSource); m_Grid.Refresh(); UpdateData(FALSE);

        D 1 Reply Last reply
        0
        • A Anonymous

          Hi, Here is the piece of code thats cauing the error: m_DataSource is an object of CRecordset which contains records from a database table. m_Grid.SetDataSource(NULL); m_Grid.SetDataSource( (LPDISPATCH) m_DataSource); m_Grid.Refresh(); UpdateData(FALSE);

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Ok, so which of these four statements causes the error? I've never used the MSFlexGrid object but that first statement seems unnecessary. The UpdateData() call is suspect.


          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          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