DataGridViewComboBoxColumn has a datasource, which contains a list of names. DataGridView contains a separate datasource, which contains index for the list above.
Is there anyway for set the DataGridViewComboBoxColumn selectedIndex using datasource from DataGridView? As an example:
var bs = new BindingSource() {DataSource = objDatabase.GetDataTable("Traverse Table", )};
dgvTraverseTable.DataSource = bs;
For "Traverse Tale" layout,
1/no
2/yes
3/no
dgvTraverseTable Columns: colPathName (comboxboxcol), colPathUse(checkboxcol)
For the colPathName, I have a BindingSource as a String List with
("PathNo1", "PathNo2", "PathNo3")
So Ideally, what should display is the following
PathNo1 / no
PathNo2 / yes
PathNo3 / no