/// <summary> 双击行查看明细 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gvPurchaseOrderList_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex > -1 && e.ColumnIndex > -1)//双击表头或列头时不起作用 { string order_Id = Convert.ToString(this.gvPurchaseOrderList.CurrentRow.Cells["order_id"].Value.ToString()); string order_status = this.gvPurchaseOrderList.CurrentRow.Cells["order_status"].Value.ToString(); UCPurchaseOrderView2 UCPurchaseOrderView2 = new UCPurchaseOrderView2(order_Id, order_status, this); base.addUserControl(UCPurchaseOrderView2, "采购订单-查看", "UCPurchaseOrderView" + order_Id + "", this.Tag.ToString(), this.Name); } }