How to make list boxes like that of a spread sheet

How can I make list boxes like that of a spread sheet. I want to make a List box such that it looks something like an excel document where you can highlight and edit an individual elements (cell) for editing and copying, etc. Is there a common control that enables me of doing so? Or do I have to write my own code to do so?
If the answer is the later, then please advise on how to write such code.

Thank you.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I haven't heard of any function before, but maybe there is
Vinayak KumbarSr Program ManagerCommented:

Why U want list box to behave as spread?. Instead U can use spread itself. Or with some difficulty u can make the ListCtrl to behave as spread.

I dont think it is good idea to convert a list box into the spread!!!

Zainal062797Author Commented:
What do you mean by "spread"? Is that a control class.
Anyway, I guess I found the solution to m problem, I found a grid class on the Internet that does exactly what I want it to do. There is also a Microsoft class posted on the MSDN called FlexGrid.

Thank you guys anyway.
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

No problem. All the best for your project then
Vinayak KumbarSr Program ManagerCommented:
Yes, u R right. SpreadCtrl is a control which I feel is better than Grid control. U can use that.

U can use SpreadCtrl instead of list box. If you start converting list box as SpreadCtrl, frankly you don`t know when you will complete your task.
You might consider the Dundas Ultimate Grid control for this ...
look at
CListCtrl (list view) provides spreadsheet-like user-interface.

You can set it up to draw grid lines.

And you can (relatively easily) allow for inplace-editing of cells.

Have a look at for how to make a spreadsheet-like CListCtrl and also for other spreadsheet-like controls (almost all with source code and free)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.