如何在新的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);