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);
1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vishal JadavPosted Dec 16, 2015, 5:20 AM