How to make ComboBox column in DataGridView?

Gali picture Gali · Jun 27, 2011 · Viewed 7.3k times · Source

I have DataGridView with 2 columns:

Fname | Age

I need to show Age in ComboBox (that i can pick the age between 1 to 100).
When I press the button (save button for example) the Age value will be saved to the database. (I work with access)

Can i get any sample in C# for this?

Answer

Alex Aza picture Alex Aza · Jun 27, 2011

Did you check MSDN? It has a good example at DataGridViewComboBoxColumn Class.