private void bbtnKaydet_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { if (viewKullanicilar.FocusedRowHandle < 0) { return; } ActiveControl = groupControl1; string userName = viewKullanicilar.GetFocusedRowCellDisplayText(gcuUserName); string roleName = glueRol.EditValue.ToString2(); List <PermEx> permList = gridKullaniciIzinleri.DataSource as List <PermEx>; bool sonuc = Yetki.InsertUpdateUserPerm(roleName, userName, permList, ""); if (sonuc) { if (glueRol.EditValue.IsNullEmpty()) { viewKullanicilar.SetFocusedRowCellValue(gcuRole, null); } else { viewKullanicilar.SetFocusedRowCellValue(gcuRole, glueRol.EditValue); } Mesaj.Bilgi(); } } catch (Exception ex) { Mesaj.Hata(ex); } }