コード例 #1
0
        void dgrdvOrder_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            int irow = e.RowIndex;
            int icol = e.ColumnIndex;

            if ((irow == -1) || (icol == -1))
            {
                return;
            }
            if (this.dgrdvOrder.Columns[icol].Name == this.ColumnbtnCreate.Name)
            {
                int    CompanyID      = (int )this.dtblOrderItems.DefaultView[irow]["CompanyID"];
                string CompanyAbbName = this.dtblOrderItems.DefaultView[irow]["CompanyAbbName"].ToString();
                if (this.frmOper == null)
                {
                    this.frmOper = new FrmOutSrcSupplyNoteOper();
                    new FrmStyle(frmOper).SetPopFrmStyle(this);
                    frmOper.AffterSave += this.frmOper_AffterSave;
                }
                frmOper.New(CompanyID, CompanyAbbName);
                frmOper.ShowDialog();
            }
        }