Exemplo n.º 1
0
        private void btnAdd()
        {
            try
            {
                FrmUserEdit frmEdit = new FrmUserEdit(this.BackColor);
                frmEdit.ShowDialog();

                GetGridView();
            }
            catch (Exception ee)
            {
                throw new Exception(ee.Message);
            }
        }
Exemplo n.º 2
0
        private void btnEdit()
        {
            try
            {
                DataTable dt   = (DataTable)gridControl1.DataSource;
                int       iRow = GetFocRowID();
                SetMod(dt.Rows[iRow]);

                FrmUserEdit frmEdit = new FrmUserEdit(this.BackColor, clsUserMod);
                frmEdit.ShowDialog();

                iRow = GetFocRowID();
                GetGridView();
                gridView1.FocusedRowHandle = iRow;
            }
            catch (Exception ee)
            {
                throw new Exception(ee.Message);
            }
        }