/// <summary> /// 选择表类型后表格控件重新绑定 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void toolStripComboBox1_SelectedIndexChanged(object sender, EventArgs e) { this._trendTableType = (enumCheckRangeType)this.toolStripComboBox1.ComboBox.SelectedValue; this._currentRow = 0; //表间切换时记录了前一个表的索引,所以要重新清0 this._isValidate = true; BindDgdViewAll(); }
GridOilDataEdit oilEdit = null; //用于编辑数据 #endregion #region "构造函数" /// <summary> /// 构造函数 /// </summary> public FrmExperienceRangeCheck() { InitializeComponent(); InitStyle(); //设置表格显示样式 SetHeader(); //设置表格的头部 BindToolStripCmbTableType(); this._trendTableType = (enumCheckRangeType)this.toolStripComboBox1.ComboBox.SelectedValue; BindDgdViewAll(); oilEdit = new GridOilDataEdit(); //initButton(); //initTableHead(); }