Results 1 to 9 of 9

Thread: SGrid 2.0 as a cool alternative to Listview [Updated]

  1. #1

    Thread Starter
    Lively Member Tegan's Avatar
    Join Date
    Jun 2005
    Location
    Lincoln, NE
    Posts
    108

    Thumbs up SGrid 2.0 as a cool alternative to Listview [Updated]

    **Updated versions below this post**

    Here is a little example I have been toying with lately. It could be usefull in one of my applications managing databases. Allowing users to select and deselect multiple items and rows of data.

    I thought some of the code heads might appreciate this. Obviously its just an example however I know it could be vastly improved in its coding.

    Any ideas or suggestions help.


    Anyways here is the zip file and a screenshot.
    Read the readme file as it instructs you on registering VB Accelerator SGrid 2 ocx.
    Attached Images Attached Images  
    Attached Files Attached Files
    Last edited by Tegan; Dec 31st, 2005 at 05:51 PM.
    Tegan Snyder

  2. #2
    No place like 127.0.0.1 eyeRmonkey's Avatar
    Join Date
    Jul 2005
    Location
    Blissful Oblivion
    Posts
    2,306

    Re: SGrid 2.0 as a cool alternative to Listview

    Yeah, SGrid is pretty awesome. As is most stuff from vbAccelerator.com.
    Visual Studio 2005 Professional Edition (.NET Framework 2.0)
    ~ VB .NET Links: Visual Basic 6 to .NET Function Equivalents (Thread) | Refactor! (White Paper) | Easy Control for Wizard Forms | Making A Proper UI For WinForms | Graphics & GDI+ Tutorial | Websites For Free Icons
    ~ QUOTE: Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rich Cook

    ~ eyeRmonkey.com

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: SGrid 2.0 as a cool alternative to Listview

    Rarely do I have the opportunity of moving something from ClassicVB to the CodeBank.

    I think a lot of folks will get use out of this, and that is why I've moved it.

    Member notified of move via PM.


  4. #4

    Thread Starter
    Lively Member Tegan's Avatar
    Join Date
    Jun 2005
    Location
    Lincoln, NE
    Posts
    108

    Re: SGrid 2.0 as a cool alternative to Listview

    Here is an updated version that actually parses data from a CSV file.
    See if you can help me with the obvious bugs.
    Attached Files Attached Files
    Tegan Snyder

  5. #5
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: SGrid 2.0 as a cool alternative to Listview

    Just a few questions..

    Does each column use a collection like a listview? If not, can you do me a quick check? Use a for loop to like 10000 and add different text to each box (just random # or something) for 11 columns?

    Then check your ram and tell me your usage..If its low I will gladly use your program, the listivew is killing me with ram issues, and makes me wish I learned c++ from the beginning.



    (not @ my comp, cant test)

  6. #6
    New Member
    Join Date
    Dec 2005
    Posts
    10

    Re: SGrid 2.0 as a cool alternative to Listview

    I used this a bit too, but there were some wierd bugs I couldn't fix.

    But vbAccelerator.com seems dead since Jun04. Anyone know what happened to Steve?

  7. #7

    Thread Starter
    Lively Member Tegan's Avatar
    Join Date
    Jun 2005
    Location
    Lincoln, NE
    Posts
    108

    Talking Re: SGrid 2.0 as a cool alternative to Listview [Updated]

    UPDATE

    Here is a neat little update on the enhanced listview I was coding with SGrid2.

    Works like a charm. Maybe a few small bugs. I have also attached a sample CSV file I made in Microsoft Excel.

    It will put the CSV in the fields correctly. Tell me what you think

    Attached Files Attached Files
    Last edited by Tegan; Dec 28th, 2005 at 10:11 PM.
    Tegan Snyder

  8. #8
    Frenzied Member
    Join Date
    Dec 2008
    Location
    Melbourne Australia
    Posts
    1,487

    Re: SGrid 2.0 as a cool alternative to Listview [Updated]

    If any of you have downloaded this and then run screaming because of the plethora of dependencies (Like I did originally), there is some good news.
    You can untick all of the dependencies, and leave just 2 -
    - The SGrid
    - Microsoft Windows Common Controls 5.0 (SP2)

    The grid of course we need
    The author has included the Common controls solely (I believe) for the ImageList.
    The author worked out that he can point the SGrid at the imagelist, and that is how he is getting the CheckBoxes
    He called the SGrid2 "data"
    Code:
    With data
        .GridLineColor = RGB(205, 226, 254)
        .ImageList = imgL

  9. #9
    Lively Member
    Join Date
    Aug 2008
    Location
    Denmark
    Posts
    85

    Re: SGrid 2.0 as a cool alternative to Listview [Updated]

    FYI
    Many years ago (before 2008) i did a comparison of the speed of SGrid 2.0 vs Videosoft (now ComponentOne) vsFlexGrid v7
    vsFlexGrid was roughly 2 time faster but SGrid 2.0 is a good free open sourced alternative with good speed and it offers many of the same features with a similar api (not 100% but close)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width