/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gvPurchasePlanOrderList_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex > -1 && e.ColumnIndex > -1)//双击表头或列头时不起作用 { string plan_Id = Convert.ToString(this.gvPurchasePlanOrderList.CurrentRow.Cells["plan_id"].Value.ToString()); UCPurchasePlanOrderView2 UCPurchasePlanOrderView = new UCPurchasePlanOrderView2(plan_Id, this); base.addUserControl(UCPurchasePlanOrderView, "采购计划单查询-查看", "UCPurchasePlanOrderView" + plan_Id + "", this.Tag.ToString(), this.Name); } }