private void btn人工关闭_Click(object sender, EventArgs e) { if (gridView请购计划列表.FocusedRowHandle > -1) { var list = gridView请购计划列表.DataSource as V_ICPRBILLMODEL[]; var icprbilldata = list[gridView请购计划列表.GetDataSourceRowIndex(gridView请购计划列表.FocusedRowHandle)]; frm请购计划编辑 frm = new frm请购计划编辑(icprbilldata.FID); frm.IsRowClose = true; frm.Text = "请购计划-人工关闭"; frm.ICPRBILLData = icprbilldata; frm.Show(); } }
private void gridView请购计划列表_MouseDown(object sender, MouseEventArgs e) { DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo hInfo = gridView请购计划列表.CalcHitInfo(new Point(e.X, e.Y)); if (e.Button == MouseButtons.Left && e.Clicks == 2) { //判断光标是否在行范围内 if (hInfo.InRow) { if (gridView请购计划列表.FocusedRowHandle > -1) { var list = gridView请购计划列表.DataSource as V_ICPRBILLMODEL[]; var icprbilldata = list[gridView请购计划列表.GetDataSourceRowIndex(gridView请购计划列表.FocusedRowHandle)]; frm请购计划编辑 frm = new frm请购计划编辑(icprbilldata.FID); frm.ICPRBILLData = icprbilldata; frm.SaveAfter += Frm_SaveAfter; frm.Show(); } } } }