1
Answer

Bind combobox on celldoubleclick of datagridview

Satish sharma

Satish sharma

8y
375
1
i have a combobox and datagridview.  i wants to bind combobox on celldoubleclick of datagridview.
 
binding table have id and name column.
 
id nvarchar(15)  primary key with 'Pub' prefix.
 
i have try 
 
1.    PublisherList.SelectedItem = dt.Rows[0][5].ToString();
2.    PublisherList.SelectedItem = PublisherList.FindStringExact(dt.Rows[0][5].ToString());
3.    PublisherList.SelectedValue = Convert.ToString(BookList.CurrentRow.Cells[4].Value);
  
 
Answers (1)