如何在新的datagridview行中将项目添加到现有的组合框单元格?
当用户想要添加新行时,此组合框必须填充其值,以便用户可以选择一个 .
dataGridViewCellphones.AutoGenerateColumns = false;
DataGridViewRow row = (DataGridViewRow)dataGridViewCellphones.Rows[0].Clone();
DataGridViewComboBoxColumn countries= new
DataGridViewComboBoxColumn();
countries.DataSource = tempCountryList;
countries.DisplayMember = "EnglishName";
countries.ValueMember = "CountriesID";
row.Cells[1].Value = countries;
dataGridViewCellphones.Rows.Add(row);