大家好,我已将我的 datagridview 与 DataGridViewComboBoxColumn 绑定如下
DataGridViewComboBoxColumn clnStatus = new DataGridViewComboBoxColumn();
clnStatus.DataPropertyName = "Status";
clnStatus.AutoComplete = true;
clnStatus.ValueMember = "absent";
clnStatus.Name = "Absent - Leave - Present";
clnStatus.DataSource = new string[] { "absent", "present", "leave" };
dataGridView1.Columns.Insert(0, clnStatus);
但这导致我的 datagridview 为空值,如下所示。我应该怎么做才能选择一个值