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.
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.
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)