almost ListView Windows Form .NET control

JoeCDaMan

Senior member
Sep 17, 2001
211
0
0
I am looking for a .NET windows control to display two columns. On the left hand side I want to display text, on the right hand side I want to have a populated drop down listbox so the user can choose a corresponding value. Essentially I want to create "key->value pairs". Anyone have any ideas short of inheriting from the ListView class and creating my own class?

Thanks
 

Kilrsat

Golden Member
Jul 16, 2001
1,072
0
0
I don't think I have a clear idea of exactly what you want.

What do you mean on the left side you want to display text? Just a basic single line text field? Multiple line text (just a blob)? Multiple single line items?

Maybe another description or diagram would be beneficial.
 

oog

Golden Member
Feb 14, 2002
1,721
0
0
doesn't a grid allow you to put other controls within a column of cells?
 

JoeCDaMan

Senior member
Sep 17, 2001
211
0
0
what I want to is have a table with 2 columns. Left column only has 1 string per row, right column has a listbox with values.

I want to create key/value pairs.

For example

Key -> Values

"Firstname" -> "Joe"
-> "Matt"
-> "Chris"

so with the key FirstName you can then choose from the listbox one of the names.

As a result you would get FirstName/Joe



To achieve this effect I am currently looking at the PropertyGrid Control, however I am having a hard time populating the listbox on the right hand side with values. I can add items, but they are not showing up during run time.