示例#1
0
 private void gvSalePlanList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex > -1 && e.ColumnIndex > -1)//双击表头或列头时不起作用
     {
         string sale_plan_id = Convert.ToString(this.gvSalePlanList.CurrentRow.Cells["sale_plan_id"].Value.ToString());
         UCSalePlanViewSearch UCSalePlanView = new UCSalePlanViewSearch(sale_plan_id, this);
         base.addUserControl(UCSalePlanView, "销售计划单-查看", "UCSalePlanView" + sale_plan_id + "", this.Tag.ToString(), this.Name);
     }
 }
 private void gvSalePlanList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex > -1 && e.ColumnIndex > -1)//双击表头或列头时不起作用   
     {
         string sale_plan_id = Convert.ToString(this.gvSalePlanList.CurrentRow.Cells["sale_plan_id"].Value.ToString());
         UCSalePlanViewSearch UCSalePlanView = new UCSalePlanViewSearch(sale_plan_id, this);
         base.addUserControl(UCSalePlanView, "销售计划单-查看", "UCSalePlanView" + sale_plan_id + "", this.Tag.ToString(), this.Name);
     }
 }