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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Any tips on a useful method to display data

Any tips on a useful method to display data

Scheduled Pinned Locked Moved C / C++ / MFC
c++csharpdatabasehelp
3 Posts 2 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.
  • H Offline
    H Offline
    Hans Christian Andersen
    wrote on last edited by
    #1

    I'm working on a piece of software in VC++ 6, which basically connects to an ACCESS database using ADO/ADOX and displays the data from the database to a MSFLEXGRID control. It works fine. I have written the code so that each record can be selected and that data is passed back to the main form. Now its a matter of aestetics that I have a problem with. It seems like the MSFLEXGRID control is a bit short of features. I'm trying to figure out a way for the user to be able to reorder the columns by dragging the headings. MSFLEXGRID does not seem to support this in any particular way. I have a few ideas (hacks), which I think I could use to work around the problem, but I was wondering if there's some other magic control that I'm not aware of thats better and can be used in Visual C++ 6 (no .NET). I looked at Datagrid, but it doesn't seem to be what I'm looking for. Another problem I have is in implementing a right-click context menu to the Flexgrid. On the right mouse button event, the context menu is only triggered if the current mouse selected cell is a header, but what then happens is that it also responds to the event (strangely) if you right click _above_ the heading cells (outside the flexgrid control), although below is no problem. I have no idea why this is happening and yet another reason why I would want to know if there is anything better out there. I looked to no avail. Must emphasize: VC++ 6 only its a struggle -jose

    H M 2 Replies Last reply
    0
    • H Hans Christian Andersen

      I'm working on a piece of software in VC++ 6, which basically connects to an ACCESS database using ADO/ADOX and displays the data from the database to a MSFLEXGRID control. It works fine. I have written the code so that each record can be selected and that data is passed back to the main form. Now its a matter of aestetics that I have a problem with. It seems like the MSFLEXGRID control is a bit short of features. I'm trying to figure out a way for the user to be able to reorder the columns by dragging the headings. MSFLEXGRID does not seem to support this in any particular way. I have a few ideas (hacks), which I think I could use to work around the problem, but I was wondering if there's some other magic control that I'm not aware of thats better and can be used in Visual C++ 6 (no .NET). I looked at Datagrid, but it doesn't seem to be what I'm looking for. Another problem I have is in implementing a right-click context menu to the Flexgrid. On the right mouse button event, the context menu is only triggered if the current mouse selected cell is a header, but what then happens is that it also responds to the event (strangely) if you right click _above_ the heading cells (outside the flexgrid control), although below is no problem. I have no idea why this is happening and yet another reason why I would want to know if there is anything better out there. I looked to no avail. Must emphasize: VC++ 6 only its a struggle -jose

      H Offline
      H Offline
      Hans Christian Andersen
      wrote on last edited by
      #2

      Surely something must exist, such as the grids that Windows Explorer itself uses? its a struggle -jose

      1 Reply Last reply
      0
      • H Hans Christian Andersen

        I'm working on a piece of software in VC++ 6, which basically connects to an ACCESS database using ADO/ADOX and displays the data from the database to a MSFLEXGRID control. It works fine. I have written the code so that each record can be selected and that data is passed back to the main form. Now its a matter of aestetics that I have a problem with. It seems like the MSFLEXGRID control is a bit short of features. I'm trying to figure out a way for the user to be able to reorder the columns by dragging the headings. MSFLEXGRID does not seem to support this in any particular way. I have a few ideas (hacks), which I think I could use to work around the problem, but I was wondering if there's some other magic control that I'm not aware of thats better and can be used in Visual C++ 6 (no .NET). I looked at Datagrid, but it doesn't seem to be what I'm looking for. Another problem I have is in implementing a right-click context menu to the Flexgrid. On the right mouse button event, the context menu is only triggered if the current mouse selected cell is a header, but what then happens is that it also responds to the event (strangely) if you right click _above_ the heading cells (outside the flexgrid control), although below is no problem. I have no idea why this is happening and yet another reason why I would want to know if there is anything better out there. I looked to no avail. Must emphasize: VC++ 6 only its a struggle -jose

        M Offline
        M Offline
        Michael P Butler
        wrote on last edited by
        #3

        Probably the best free C++ grid control[^] Michael CP Blog [^]

        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