private void BindData() { DevComponents.DotNetBar.Controls.DataGridViewComboBoxExColumn control = (DevComponents.DotNetBar.Controls.DataGridViewComboBoxExColumn)dgv.Columns["classify"]; List <string> cla = new List <string>(); //cla.Add("正常"); cla.Add("补报"); cla.Add("漏报"); control.DataSource = cla; }
public SupplementForm(string supplementJsonString, int taskId) { InitializeComponent(); this.taskInfoId = taskId; try { supplement = ResultSupplement.fromJson(supplementJsonString); } catch (Exception ex) { supplement = null; } DevComponents.DotNetBar.Controls.DataGridViewComboBoxExColumn control = (DevComponents.DotNetBar.Controls.DataGridViewComboBoxExColumn)alarmSupplementPan.dgv.Columns["classify"]; control.BeforeCellPaint += Control_BeforeCellPaint; }