Click here to Skip to main content
15,891,787 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to select submitted item in combobox in datagridview in window form on edit
Posted

Are you asking for the same stuff as below

C#
string s = comboBox1.Text;
dataGridView1.Rows.Add(s);
 
Share this answer
 
Comments
Amit Vasi 14-Jun-13 5:13am    
No, I have a combobox in datagridview . Records are submitted already. I want to edit and that item must be selected from dataset or datatable.
Surendra Adhikari SA 14-Jun-13 7:15am    
can you give detail? code snippet how did you done " Records are submitted already. I want to edit and that item must be selected from dataset or datatable." and what you have tried?
I think this is what you are looking for...
(((DropDownList)row.FindControl("yourdropdownlist")).SelectedValue.ToString())
 
Share this answer
 

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