M Oj
M Oj

Reputation: 39

How to have a listbox in dataGridview cell

I want to have listbox in specific column cells in a dataGridview

why I'm doing that ?

because I have a xml structure which some of it's parameters have multiple values

and why I don't use multi line text for each cell instead ? because each value has an other related value which is hidden from user and I want to use listbox valueMeber for that

What I have tried:

Multiline text in Gridview:

winforms - C#: multiline text in DataGridView control - Stack Overflow

trying to have a listbox in the following solution but speaking frankly , I couldn't do that

Multiple controls in a single DataGridView cell

Upvotes: 1

Views: 3302

Answers (1)

Paweł Swajdo
Paweł Swajdo

Reputation: 391

Working example: stackoverflow

is that the required effect? enter image description here

Upvotes: -1

Related Questions