Click here to Skip to main content
15,920,513 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more: , +
How can I call comboboxes and textboxes in my datagridview in C#? How can I populate the selected index of combobox inside the datagridview? Can anybody please help me? It's very urgent.

Thanks in advance
Updated 30-Nov-10 21:38pm

It may help u.
pls check the below link
<a href=""></a>
Share this answer
Hi sevenbell,

Add comboox as datagridviewcomboboxcolumn in design mode in datagridview.
You can bind data source as colcomboboxcolumn.datasuorce where colcomboboxcolumn is the name of combo box column in datagridview.

You have to use datagridview event to take value from combo box.
For this first check the event fire with that combo box column on not.

Share this answer
sevenbell 1-Dec-10 4:05am    
thanks for your valuable answer . I tried it and now i know to add combobox to gridview but i didnot know how i apply selected index change of the combobox. which event i will select to do it. please replay.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900