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. Did anybody ever use MSFlexGrid control in VC++ before?

Did anybody ever use MSFlexGrid control in VC++ before?

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++databaseperformance
11 Posts 4 Posters 2 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.
  • A Offline
    A Offline
    Aaron K B Huang
    wrote on last edited by
    #1

    Hi, as the title. Can you give me a sample or some links? Thank you. More details: FlexGrid binds to a Recorderset, which opened with SQL cmdText not table. How can I performance this?

    C R 2 Replies Last reply
    0
    • A Aaron K B Huang

      Hi, as the title. Can you give me a sample or some links? Thank you. More details: FlexGrid binds to a Recorderset, which opened with SQL cmdText not table. How can I performance this?

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Kamp Huang wrote: Did anybody ever use MSFlexGrid control in VC++ before? Yes, it sucks - next question.... Seriously you can't *bind* a flexgrid to a recordset, you need to go through and copy the data into the grid. Save yourself some grief and download Chris Maunders most excellent grid control instead. You'll still need to handle copying data into and out of the grid, but it is a LOT nicer and more flexible. Christian I have come to clean zee pooollll. - Michael Martin Dec 30, 2001

      Sonork ID 100.10002:MeanManOz

      I live in Bob's HungOut now

      A 1 Reply Last reply
      0
      • A Aaron K B Huang

        Hi, as the title. Can you give me a sample or some links? Thank you. More details: FlexGrid binds to a Recorderset, which opened with SQL cmdText not table. How can I performance this?

        R Offline
        R Offline
        Rashid Thadha
        wrote on last edited by
        #3

        This sample uses the MS FlexGrid http://www.codeproject.com/database/isqlado.asp

        A 2 Replies Last reply
        0
        • R Rashid Thadha

          This sample uses the MS FlexGrid http://www.codeproject.com/database/isqlado.asp

          A Offline
          A Offline
          Aaron K B Huang
          wrote on last edited by
          #4

          Thanks a LOT!:rose:

          1 Reply Last reply
          0
          • C Christian Graus

            Kamp Huang wrote: Did anybody ever use MSFlexGrid control in VC++ before? Yes, it sucks - next question.... Seriously you can't *bind* a flexgrid to a recordset, you need to go through and copy the data into the grid. Save yourself some grief and download Chris Maunders most excellent grid control instead. You'll still need to handle copying data into and out of the grid, but it is a LOT nicer and more flexible. Christian I have come to clean zee pooollll. - Michael Martin Dec 30, 2001

            Sonork ID 100.10002:MeanManOz

            I live in Bob's HungOut now

            A Offline
            A Offline
            Aaron K B Huang
            wrote on last edited by
            #5

            Copy the datas one by one?:confused:

            C 1 Reply Last reply
            0
            • A Aaron K B Huang

              Copy the datas one by one?:confused:

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              Kamp Huang wrote: Copy the datas one by one? Yes, I've not seen any samples that auto fill a grid for you. If I'm wrong, please correct me, but I've never seen it happen by itself. Christian I have come to clean zee pooollll. - Michael Martin Dec 30, 2001

              Sonork ID 100.10002:MeanManOz

              I live in Bob's HungOut now

              A 1 Reply Last reply
              0
              • C Christian Graus

                Kamp Huang wrote: Copy the datas one by one? Yes, I've not seen any samples that auto fill a grid for you. If I'm wrong, please correct me, but I've never seen it happen by itself. Christian I have come to clean zee pooollll. - Michael Martin Dec 30, 2001

                Sonork ID 100.10002:MeanManOz

                I live in Bob's HungOut now

                A Offline
                A Offline
                Aaron K B Huang
                wrote on last edited by
                #7

                :) I've never found that too. Thanks for your reply. It seems that I'd better shift back to DataGrid control.

                R 1 Reply Last reply
                0
                • R Rashid Thadha

                  This sample uses the MS FlexGrid http://www.codeproject.com/database/isqlado.asp

                  A Offline
                  A Offline
                  Aaron K B Huang
                  wrote on last edited by
                  #8

                  I have another stupid question now. I've downloaded this sample and traced it. but I can't find where the code of putting data into the FlexGrid. I also know that the methods, SetTextMatrix() and SetText(), which can performance that job. But how the sample does that without those methods?:confused:

                  1 Reply Last reply
                  0
                  • A Aaron K B Huang

                    :) I've never found that too. Thanks for your reply. It seems that I'd better shift back to DataGrid control.

                    R Offline
                    R Offline
                    Rashid Thadha
                    wrote on last edited by
                    #9

                    See my sample on MS Data Grid, That Auto fills data for you. http://www.codeproject.com/useritems/msdatagrid.asp MS Data Flex Grid is used with ODBC and non OLE DB data sources. MS Data Grid is used for OLE DB data sources.

                    A 1 Reply Last reply
                    0
                    • R Rashid Thadha

                      See my sample on MS Data Grid, That Auto fills data for you. http://www.codeproject.com/useritems/msdatagrid.asp MS Data Flex Grid is used with ODBC and non OLE DB data sources. MS Data Grid is used for OLE DB data sources.

                      A Offline
                      A Offline
                      Aaron K B Huang
                      wrote on last edited by
                      #10

                      Thanks, I've read your excellent article before. :rose: But there is a strange thing in DataGrid. When I called SetRow() method, I failed set to the row that existed but not visible in current scroll range. Do you know why?:confused:

                      C 1 Reply Last reply
                      0
                      • A Aaron K B Huang

                        Thanks, I've read your excellent article before. :rose: But there is a strange thing in DataGrid. When I called SetRow() method, I failed set to the row that existed but not visible in current scroll range. Do you know why?:confused:

                        C Offline
                        C Offline
                        Chitrack
                        wrote on last edited by
                        #11

                        I am also facing the same problem of not able to see the data in the current scroll range but with MS Flex Grid. Did u get any solution for this.and if naybody knows it please reply back. Thanks Chitra

                        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