Exemplo n.º 1
0
        private void addBtn_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            gridView1.AddNewRow();
            AddEditDMNVU editForm = new AddEditDMNVU(gridView1, true); // 2nd argument is true for Adding

            editForm.ShowDialog();
            e00DMNVUTableAdapter.Update(eWONDATASET.E00DMNVU);
            e00DMNVUTableAdapter.Fill(eWONDATASET.E00DMNVU);
            gridView1.FocusedRowHandle = gridView1.DataRowCount - 1;
        }
Exemplo n.º 2
0
        private void editBtn_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            int          tempfocus = gridView1.FocusedRowHandle;
            AddEditDMNVU editForm  = new AddEditDMNVU(gridView1, false); // 2nd argument is false for editting

            editForm.ShowDialog();
            e00DMNVUTableAdapter.Update(eWONDATASET.E00DMNVU);
            e00DMNVUTableAdapter.Fill(eWONDATASET.E00DMNVU);
            gridView1.FocusedRowHandle = tempfocus;
        }