private void bbtnKaydet_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { if (viewRoles.FocusedRowHandle < 0) { return; } ActiveControl = groupControl1; string rolName = viewRoles.GetFocusedRowCellDisplayText(gcRoleName); List <PermEx> rolePermList = gridRoleIzinleri.DataSource as List <PermEx>; bool sonuc = Yetki.InsertUpdateRolePerm(rolName, rolePermList, ""); if (sonuc) { Mesaj.Bilgi(); } } catch (Exception ex) { Mesaj.Hata(ex); } }