Link to home
Start Free TrialLog in
Avatar of cosie
cosie

asked on

Very EASYquestion, which control to use?

I need the same funcionality as a standard ListBox provides, but multiple columns per line.
I mean a listitem consists of more corresponding datas as date, data, etc. And I need a header for all columns.

Which control to use?
Avatar of RobDillon
RobDillon

I would suggest using a databound grid control if your data is in a database. If you are going to populate the grid manually you may want to use an msFlexgrid control (this can be a little complicated to use). The listview control affords the opportunity to include images in your grid as well as checkboxes or drop-down lists. Have a look at each of these and see what's best for you.
Avatar of cosie

ASKER

I dont't need db access, nor images, or dropdown, just strings. I need the most simple component to code.
the most simple component is the MSFlexgrid (in my opinion)
Avatar of Guy Hengel [angelIII / a3]
I suggest the ListView control:
check the "Microsoft Windows Common Controls version x.0" in project components, and you will have a bunch of controls, where the listview should do the trick:
* view -> Report to get the headers
You can configure the headers at design time or at runtime...

CHeers



ASKER CERTIFIED SOLUTION
Avatar of deighton
deighton
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cosie

ASKER

Hi deighton,

only one thing to know, how to clear the listview?
Avatar of cosie

ASKER

Hi deighton,

only one thing to know, how to clear the listview?
Listview1.Listitems.Clear

Cheers
Avatar of cosie

ASKER

Thanx to all!
There are more options if u want.