2 Attachment(s)
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.
Re: SGrid 2.0 as a cool alternative to Listview
Yeah, SGrid is pretty awesome. As is most stuff from vbAccelerator.com.
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.
:thumb:
1 Attachment(s)
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.
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.
:wave:
(not @ my comp, cant test)
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?
1 Attachment(s)
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 :)
http://www.basic-ware.com/Screenshots/neato.JPG
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
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)