//取消全选 private void btnClearAll_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { var gridView = (GridView)((GridControl)this.btnFcdsSearch.SelectedTabPage.Controls[0]).MainView; gridView.FocusedRowHandle = 0; gridView.FocusedColumn = gridView.Columns[1]; GridControlHelper.SelectItem(gridView, false); }
//反选 private void barButtonItem5_ItemClick(object sender, ItemClickEventArgs e) { if (this.xtraTabControl1.SelectedTabPage.Text.Equals("比对数据")) { MessageBox.Show("不能进行此操作!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } var gridview = (GridView)((GridControl)((GroupBox)this.xtraTabControl1.SelectedTabPage.Controls[0]).Controls[0]).MainView; gridview.FocusedRowHandle = 0; gridview.FocusedColumn = gridview.Columns[1]; GridControlHelper.SelectItem(gridview, false); }
// 取消全选 private void barBtnClearAll_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { this.gvUser.FocusedRowHandle = 0; this.gvUser.FocusedColumn = this.gvUser.Columns[1]; GridControlHelper.SelectItem(this.gvUser, false); } catch (Exception ex) { throw ex; } }
//取消全选 private void btnClearAll_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (btnRLDCExport.SelectedTabPage == tpCtny) { this.gvCtny.FocusedRowHandle = 0; this.gvCtny.FocusedColumn = this.gvCtny.Columns[1]; GridControlHelper.SelectItem(this.gvCtny, false); } else if (btnRLDCExport.SelectedTabPage == tpFcds) { this.gvFcds.FocusedRowHandle = 0; this.gvFcds.FocusedColumn = this.gvFcds.Columns[1]; GridControlHelper.SelectItem(this.gvFcds, false); } else if (btnRLDCExport.SelectedTabPage == tpCds) { this.gvCds.FocusedRowHandle = 0; this.gvCds.FocusedColumn = this.gvCds.Columns[1]; GridControlHelper.SelectItem(this.gvCds, false); } else if (btnRLDCExport.SelectedTabPage == tpCdd) { this.gvCdd.FocusedRowHandle = 0; this.gvCdd.FocusedColumn = this.gvCdd.Columns[1]; GridControlHelper.SelectItem(this.gvCdd, false); } else if (btnRLDCExport.SelectedTabPage == tpRldc) { this.gvRldc.FocusedRowHandle = 0; this.gvRldc.FocusedColumn = this.gvRldc.Columns[1]; GridControlHelper.SelectItem(this.gvRldc, false); } else if (btnRLDCExport.SelectedTabPage == tpLtgg) { this.gvLtgg.FocusedRowHandle = 0; this.gvLtgg.FocusedColumn = this.gvLtgg.Columns[1]; GridControlHelper.SelectItem(this.gvLtgg, false); } else if (btnRLDCExport.SelectedTabPage == tpLj) { this.gvLj.FocusedRowHandle = 0; this.gvLj.FocusedColumn = this.gvLj.Columns[1]; GridControlHelper.SelectItem(this.gvLj, false); } else if (btnRLDCExport.SelectedTabPage == tpZczbzl) { this.gvZb.FocusedRowHandle = 0; this.gvZb.FocusedColumn = this.gvZb.Columns[1]; GridControlHelper.SelectItem(this.gvZb, false); } }
//全部取消 private void barBtnCancle_ItemClick(object sender, ItemClickEventArgs e) { if (this.xtraTabControl1.SelectedTabPage.Text.Equals("待审批")) { this.gvDataInfo.FocusedRowHandle = 0; this.gvDataInfo.FocusedColumn = gvDataInfo.Columns[1]; GridControlHelper.SelectItem(this.gvDataInfo, false); } else { this.gvBackInfo.FocusedRowHandle = 0; this.gvBackInfo.FocusedColumn = gvBackInfo.Columns[1]; GridControlHelper.SelectItem(this.gvBackInfo, false); } }
//全部选中 private void barBtnSelect_ItemClick(object sender, ItemClickEventArgs e) { if (this.xtraTabControl1.SelectedTabPage.Text.Equals("三审清算")) { this.gvDataInfo3.FocusedRowHandle = 0; this.gvDataInfo3.FocusedColumn = gvDataInfo3.Columns[1]; GridControlHelper.SelectItem(this.gvDataInfo3, true); } else { this.gvDataInfo2.FocusedRowHandle = 0; this.gvDataInfo2.FocusedColumn = gvDataInfo2.Columns[1]; GridControlHelper.SelectItem(this.gvDataInfo2, true); } }
//取消全选 private void btnClearAll_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (tabPage_PARAM.SelectedTabPage == xtraTabPage1) { this.gvCtny.FocusedRowHandle = 0; this.gvCtny.FocusedColumn = this.gvCtny.Columns[1]; GridControlHelper.SelectItem(this.gvCtny, false); } else if (tabPage_PARAM.SelectedTabPage == xtraTabPage2) { this.gvCpos.FocusedRowHandle = 0; this.gvCpos.FocusedColumn = this.gvCpos.Columns[1]; GridControlHelper.SelectItem(this.gvCpos, false); } }
//取消全选 private void btnClearAll_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (this.btnFcdsSearch.SelectedTabPage.Text.Equals("传统能源")) { this.gvCtny.FocusedRowHandle = 0; this.gvCtny.FocusedColumn = this.gvCtny.Columns[1]; GridControlHelper.SelectItem(this.gvCtny, false); } if (this.btnFcdsSearch.SelectedTabPage.Text.Equals("非插电式混合动力")) { this.gvFcds.FocusedRowHandle = 0; this.gvFcds.FocusedColumn = this.gvFcds.Columns[1]; GridControlHelper.SelectItem(this.gvFcds, false); } }
//全选 private void btnSelectAll_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (this.xtraTabControl.SelectedTabPage.Text.Equals("传统能源")) { this.gvCtny.FocusedRowHandle = 0; this.gvCtny.FocusedColumn = this.gvCtny.Columns[1]; GridControlHelper.SelectItem(this.gvCtny, true); } if (this.xtraTabControl.SelectedTabPage.Text.Equals("非插电式混合动力")) { this.gvFcds.FocusedRowHandle = 0; this.gvFcds.FocusedColumn = this.gvFcds.Columns[1]; GridControlHelper.SelectItem(this.gvFcds, true); } if (this.xtraTabControl.SelectedTabPage.Text.Equals("纯电动")) { this.gvCdd.FocusedRowHandle = 0; this.gvCdd.FocusedColumn = this.gvCdd.Columns[1]; GridControlHelper.SelectItem(this.gvCdd, true); } }
//全部取消 private void barBtnCancle_ItemClick(object sender, ItemClickEventArgs e) { this.gvDataInfo.FocusedRowHandle = 0; this.gvDataInfo.FocusedColumn = gvDataInfo.Columns[1]; GridControlHelper.SelectItem(this.gvDataInfo, false); }
// 取消全选 private void barBtnClearAll_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { this.gvCljbxx.FocusedRowHandle = 0; this.gvCljbxx.FocusedColumn = this.gvCljbxx.Columns[1]; GridControlHelper.SelectItem(this.gvCljbxx, false); }
private void simpleButton3_Click(object sender, EventArgs e) { this.gvCljbxx.FocusedRowHandle = 0; this.gvCljbxx.FocusedColumn = this.gvCljbxx.Columns[1]; GridControlHelper.SelectItem(this.gvCljbxx, false); }
//全选 private void barBtnSelectAll_ItemClick(object sender, ItemClickEventArgs e) { this.gvCljbxx.FocusedRowHandle = 0; this.gvCljbxx.FocusedColumn = this.gvCljbxx.Columns[1]; GridControlHelper.SelectItem(this.gvCljbxx, true); }
// 全选 private void barBtnSelectAll_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { this.gvGH.FocusedRowHandle = 0; this.gvGH.FocusedColumn = this.gvGH.Columns[1]; GridControlHelper.SelectItem(this.gvGH, true); }