110,556
社区成员
发帖
与我相关
我的任务
分享
private void Button1_Click(object sender, EventArgs e)
{
DataGridViewComboBoxCell newComboBoxCell = new DataGridViewComboBoxCell();
newComboBoxCell.Items.AddRange({
"选项1",
"选项2",
"选项3"
});
DataGridViewRow newRow = new DataGridViewRow();
newRow.Cells.Add(newComboBoxCell);
DataGridView1.Rows.Add(newRow);
}