Beispiel #1
0
        void dgrdv_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            int irow = e.RowIndex;
            int icol = e.ColumnIndex;

            if ((irow == -1) || (icol == -1))
            {
                return;
            }
            if (this.dgrdv.Columns[icol].GetType().Equals(typeof(DataGridViewLinkColumn)))
            {
                int PrdID         = (int)this.dtblInventory.DefaultView[irow]["PrdID"];
                int BranchStoreID = int.Parse(this.dgrdv.Columns [icol].DataPropertyName);
                if (this.frmRecord == null)
                {
                    this.frmRecord = new FrmInventoryRecord();
                    new FrmStyle(frmRecord).SetPopFrmStyle(this);
                }
                this.frmRecord.StoreRecord(PrdID,
                                           BranchStoreID,
                                           DateTime.Now);
                this.frmRecord.ShowDialog();
            }
        }