tags:

views:

216

answers:

1

My datagrid view contains three columns, column types are checkbox, textbox and combobox.

If I check one row, it will load corresponding rows combobox only. How can I do it?

A: 

maybe this could help (example)

Dim dgvcc As DataGridViewComboBoxCell
dgvcc = DataGridView1.Rows(2).Cells(0)
dgvcc.Items.Add("comboitem1")
dgvcc.Items.Add("comboitem2")

source

jjj
Thank you,Its working
meenakshi
thank God..^_^..
jjj
How to get column name of selected combobox in datagridview
meenakshi
maybe...DataList1.SelectedValue.ToString
jjj
or.....DataList1.SelectedItem.ToString
jjj
why do you want to do that anyway?!!!!
jjj
if i select "Comboitem1" from combobox,how to get a datagridviewcomboboxcolumn name for selected combo
meenakshi
check out this http://www.dotnetspider.com/resources/31930-working-with-DataGridViewComboboxColumn.aspx
jjj