c# bound a dataset to a datgridview with combobox

G

gba

I have a dataset ontianing 3 columns (name,properties,type)

I'm able to bound this dataset to a datagridview my problem is for the
type column.
What I like to have is a combobox containing tree choice
(selection1,selection2,selection3)

the issue is my dataset do not contain the collection of the 3 item but
only the selected one.


but I I click on the cell i like to simply have a combobox with my 3
choices.

any idea of how to achive it any help will be very useful and
appreciate

Thanks in advance
Gilles
 
I

Ignacio Machin \( .NET/ C# MVP \)

HI,

gba said:
I have a dataset ontianing 3 columns (name,properties,type)

You meant a DataTable right?, a dataset only contains tables, are the tables
the one that contains columns.
I'm able to bound this dataset to a datagridview my problem is for the
type column.
What I like to have is a combobox containing tree choice
(selection1,selection2,selection3)

I don't think there is such a bound column, you would have to define yours
using a TemplateColumn
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top