Subject: DataGridViewComboBoxColumn
Posted By: bmains Post Date: 1/5/2006 11:30:13 AM
Hey,

I want to have a combobox in a datagridview for my one field, which has a name and ID value; so the combo box will have the name as the display member from the datasource and the ID as the value member.

So I have a combo box bound to a binding source, which has a display member of Name field, ID as value field; now the overall datagridview data source I want to select the value in the field, so the combo box has:

1  Brian
2  Dave
3  Ted

And because the datasource for the datagridview has a value of Dave, select Dave in the combobox.

How do I do that?

Thanks.


Brian

Go to topic 38339

Return to index page 403
Return to index page 402
Return to index page 401
Return to index page 400
Return to index page 399
Return to index page 398
Return to index page 397
Return to index page 396
Return to index page 395
Return to index page 394