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

            editForm.ShowDialog();
            e00DMNHVTTableAdapter.Update(eWONDATASET.E00DMNHVT);
            e00DMNHVTTableAdapter.Fill(eWONDATASET.E00DMNHVT);
            gridView1.FocusedRowHandle = gridView1.DataRowCount - 1;
        }
Beispiel #2
0
        private void editBtn_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            int           tempfocus = gridView1.FocusedRowHandle;
            AddEditDMNHVT editForm  = new AddEditDMNHVT(gridView1, false); // 2nd argument is false for editting

            editForm.ShowDialog();
            e00DMNHVTTableAdapter.Update(eWONDATASET.E00DMNHVT);
            e00DMNHVTTableAdapter.Fill(eWONDATASET.E00DMNHVT);
            gridView1.FocusedRowHandle = tempfocus;
        }