Announcement

Collapse
No announcement yet.

ListView Control as GRID

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • ListView Control as GRID

    Has anyone successfully used a ListView Control
    as a GRID control?

    Any Pro's Cons?

    ------------------
    -Greg
    -Greg
    [email protected]
    MCP,MCSA,MCSE,MCSD

  • #2
    Greg,

    You can, but if you have a lot of cells to fill and update, it gets
    to be really slow. I had 45,000 cells to fill and it took way more
    then a minute to fill on a 550 megahertz cpu. I ended up making a
    virtual "Gridview" dll in EzGui 2.0 and pass a two dimentional
    array of strings to the dll. This way only the records that are
    visible are updated on the gui. In addition using color in the
    listview is a pain. I have code to do it if you want.

    You can also look into Edwin Koppels (sp?) gridview control. I
    didn't mess with it too much, because he doesn't have cell color.
    There's a couple of commercial gridviews available, SIGrid looks
    pretty good.

    Russ Srole

    ------------------
    "There are two novels that can change a bookish fourteen-year old's life: The Lord of the Rings and Atlas Shrugged. One is a childish fantasy that often engenders a lifelong obsession with its unbelievable heroes, leading to an emotionally stunted, socially crippled adulthood, unable to deal with the real world. The other, of course, involves orcs." - John Rogers

    Comment


    • #3
      I can heartily recommend SIGrid. It's fairly straightforward to set up and works very well. Depending on your needs, there can be quite a bit of initialization code (not SIGrid's fault--kudos to M$) but the result looks and works great.

      I've used SIGrid under EZGUI with no problems. Trying to code the ListView yourself would be a massive amount of work, but at least you could put in any extra whistles and bells you wanted.

      ------------------
      --
      <strong>Billing clients for your freelance work?</strong> Try <a href="http://www.minute-2-minute.com">Minute-2-Minute</a>, the project management, timing, and billing system. Perfect for programmers who charge by the hour. FREE 45-day trial.

      Comment


      • #4
        Thanks guys. I really don't want to lug around a DLL, maybe
        I'll create a Virtual ListView. Shouldn't be too hard.

        ------------------
        -Greg
        -Greg
        [email protected]
        MCP,MCSA,MCSE,MCSD

        Comment


        • #5
          Russ;

          I ended up making a
          virtual "Gridview" dll in EzGui 2.0 and pass a two dimentional
          array of strings to the dll. This way only the records that are
          visible are updated on the gui. In addition using color in the
          listview is a pain. I have code to do it if you want.
          Is this code available to others?

          Regards,
          Jules EMAIL: [email protected]
          Best regards
          Jules
          www.rpmarchildon.com

          Comment


          • #6
            Jules,

            Yes, my intent is to post it on the EzGui site. I'd like to clean
            it up a bit, document the code and write up some rules. It's a
            combination of code in a dll and code that you must put in your main
            exe. Of course one could just put the whole thing in your main
            program if you like. Are you in a hurry? Or can you wait for me
            to get my documentation act together?

            Russ Srole

            ------------------
            "There are two novels that can change a bookish fourteen-year old's life: The Lord of the Rings and Atlas Shrugged. One is a childish fantasy that often engenders a lifelong obsession with its unbelievable heroes, leading to an emotionally stunted, socially crippled adulthood, unable to deal with the real world. The other, of course, involves orcs." - John Rogers

            Comment


            • #7
              Russ,

              Thank you! No, I am not in a hurry, I program for pleasure, it's not a job for me.
              I'll wait for your post, just kindly let me know when you do it.

              Thanks!
              Regards,
              Jules
              Best regards
              Jules
              www.rpmarchildon.com

              Comment


              • #8
                Jules,

                Just to clarify, this gridview dll uses the EzGui 2.0 runtime DLL,
                not Chris free designer. Of course one could convert it to DDT or
                API if you want.

                Russ Srole

                ------------------
                "There are two novels that can change a bookish fourteen-year old's life: The Lord of the Rings and Atlas Shrugged. One is a childish fantasy that often engenders a lifelong obsession with its unbelievable heroes, leading to an emotionally stunted, socially crippled adulthood, unable to deal with the real world. The other, of course, involves orcs." - John Rogers

                Comment


                • #9
                  greg,

                  you may be interested in this program just posted:
                  http://www.powerbasic.com/support/pb...ad.php?t=23191

                  best regards,

                  erik

                  ------------------

                  Comment

                  Working...
                  X