Esempio n. 1
0
        private void navBarYeniKisiEkle_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            int          rowhandle = gridView1.FocusedRowHandle;
            YeniKisiEkle frm       = new YeniKisiEkle(-1);

            frm.ShowDialog();
            if (frm.DialogResult == DialogResult.OK)
            {
                DataGetir(-1);//hepsini getir
            }
            gridView1.FocusedRowHandle = rowhandle;
        }
Esempio n. 2
0
        private void gridView1_DoubleClick(object sender, EventArgs e)
        {
            int          id        = Convert.ToInt32(gridView1.GetFocusedRowCellValue("ID"));
            int          rowhandle = gridView1.FocusedRowHandle;
            YeniKisiEkle frm       = new YeniKisiEkle(id);

            frm.ShowDialog();
            if (frm.DialogResult == DialogResult.OK)
            {
                DataGetir(-1); //hepsini getir
            }
            gridView1.FocusedRowHandle = rowhandle;
        }