Click here to Skip to main content
15,071,430 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I have a combobox with some values .... I need to select them and add them to datagridview
Can some one help me in c# coding for that?
Karthik_Mahalingam 9-Jan-14 5:04am
what you have tried,
post your code..
provide more info..
Asa code 9-Jan-14 5:24am
It's some thing like I have combobox called units and those values in units should be added to second column of datagridview through add button....

1 solution

Inside the selected index changed event of combobox implement the code to add values to datagrid view like

private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
              this.dataGridView1.Rows.Add("1", "XX");
Asa code 9-Jan-14 5:58am
I should need a combobox values to column in datagridview ..... combobox values are already there as m, PCS
Praveen_P 9-Jan-14 6:27am
not clear ? is your gridview have a combobox column
Praveen_P 9-Jan-14 6:27am
Plz post your code

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