I created a datagridview
via the UI editor and added columns. One of the columns is DataGridViewComboBoxColumn
.
I'm not sure which event of the DataGridView to use to populate the data from the database to the combobox in dgv.
DataGridViewComboBoxColumn dcombo = (DataGridViewComboBoxColumn) adresesDataGridView.Columns["cityColumn"];
dcombo.DataSource = this.CityDataTable();
dcombo.DisplayMember = "city";
dcombo.ValueMember = "id";