Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Grid Control Question from a newbie...

Posted on 1999-08-15
Medium Priority
Last Modified: 2013-11-20
Hello MFC Gurus out there.
I had a question regarding grid controls/List control/List view.
I have the following objectives to achieve.
1. I have to show a list of daily transactions in a list (an MDI child with a list control for example).
2. The details of the listed transactions must be available in the same window by double clicking the row. Like a tree control the list item expands showing more details lines and must close up on double clicking again.
3. Preferably would like to have resizeable columns like the list control
4. Must be able to bind the control to database columns which means the control will be able to handle it's own population
5. Must be able to handle it's own printing.

I am looking for a grid control that can do all or most of the above. I haven't actually used any grid controls in any projects. I have read whitepapers by the various grid control vendors and none of them talk about multiline list items.

Can anyone please tell me how I can reach the above five objectives or could you please point me in the right direction about which 3rd party controls offer those abilities? Any response appreciated.

Question by:ashwinb
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Author Comment

ID: 1313797
Adjusted points to 200

Expert Comment

ID: 1313798
Tre the Grid Control by Chris Maunder in in the Controls section.

Author Comment

ID: 1313799
I think I've gone through the feature list. It doesn't support the multiline subitem feature. I need to have the "doubleclick-expand, doubleclick-collapse" ability.
Or am I looking in the wrong place?
Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.


Expert Comment

ID: 1313800
  Stay at codeguru, do a search for "treelist".

-=- James.

Author Comment

ID: 1313801
Thanks for the pointers James and Luis!
Some of my colleagues have written such a control (Like the tree list) in VB. They use a tree and a list control but
hide the tree. There is an extra column with a bitmap of
an arrow pointing right or down. The bitmaps are changed depending on whether the row is expanded or collapsed (which is actually a node of the tree expanding or collapsing).
This is fine for small amounts of data. What if I have to show, say, 6000 rows or more each in 4 or 5 MDI child windows? Won't the tree control add to a lot of bulk?
Is there a Grid control with the native ability to do this?

Chris Maunder wrote to me pointing me to Allan Neilson's SuperGrid.
( I liked both the supergrid and the tree list. But my main problem is handling data!!



Expert Comment

ID: 1313802
  Written in VB, then yes, it is going to be overly bulkly, none to effecient at handling strings, and most likely a bit slow.  

   Also consider that if you are going to be handling large amounts of data...  Then you are *going to be handling* large amounts of data!  You cannot download a 1MB file without using 1MB of space somewhere...!

-=- James.

Accepted Solution

lakshminarasimman earned 200 total points
ID: 1313803
Probably you can try the stingsoft Objective Grid or the Farpoint Software's Spread control. These two more or less satisfy your requirements. You can also search for a tree list control in

Author Comment

ID: 1313804
Thank you for responding.  We are already using RogueWave DBTools and we have been evaluating Objective Grid, Lite and Pro. (Pro is quite expensive since it is compatible with DBTools.h++ libraries).  We tried the farpoint Spread too. We've decided to go with a regular grid and manually add and remove (or hide and show) lines when we need details. It's going to be an extra programming effort (in addition to being a little kludgy design wise) but we seem to have no other choice.

There's an in-house version of a reporting tool available that natively does the expand and collapse thingie but doesn't have "cool" features of a grid control. :)
I might go in for that to save some money maybe!

Thanks guys.

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question