Esempio n. 1
0
        private void ChangeGridValue(int argEntryId)
        {
            DataTable dt = new DataTable();

            dt = ReceiptDetailBL.GetChangeGridReceiptRegister(argEntryId);
            //int iRowId = frmReceiptRegister.m_oGridMasterView.FocusedRowHandle;
            int iRowId = i_RowId;

            if (dt.Rows.Count > 0)
            {
                frmReceiptRegister.m_oGridMasterView.SetRowCellValue(iRowId, "Amount", Convert.ToDecimal(CommFun.IsNullCheck(dt.Rows[0]["Amount"], CommFun.datatypes.vartypenumeric)));
                frmReceiptRegister.m_oGridMasterView.RefreshRow(iRowId);
                frmReceiptRegister.m_oGridMasterView.RefreshData();
            }
            dt.Dispose();
            frmReceiptRegister.m_oGridMasterView.FocusedRowHandle = iRowId;
        }