• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 160
  • Last Modified:

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.
0
Zainal062797
Asked:
Zainal062797
1 Solution
 
hiap_hoCommented:
I haven't heard of any function before, but maybe there is
0
 
Vinayak KumbarSr Program ManagerCommented:
Hi,

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!!!

VinExpert
0
 
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.
0
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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

VinExpert
0
 
SreeramSeCommented:
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.
0
 
captainkirkCommented:
You might consider the Dundas Ultimate Grid control for this ...
look at www.dundas.com...
0
 
RONSLOWCommented:
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 www.codeguru.com for how to make a spreadsheet-like CListCtrl and also for other spreadsheet-like controls (almost all with source code and free)
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now