• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

almost ListView Windows Form .NET control

JoeCDaMan

Senior member
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
 
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.
 
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.
 
Back
Top