摘要:
private void dgvData_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e) { if (this.dgvData.CurrentCell.ColumnIndex == 阅读全文
摘要:
简化后代码: if(A.ToString() == "A" || A.ToString() == "B" || A.ToString() == "C") 简化后代码: if (new[] { "A", "B", "C" }.Contains(A.ToString())) 阅读全文