private void gridView_personelDepartman_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e) { DepartmanAdi = gridView_personelDepartman.GetRowCellValue(gridView_personelDepartman.FocusedRowHandle, "DepartmanAdi").ToString(); SorumluAdi = gridView_personelDepartman.GetRowCellValue(gridView_personelDepartman.FocusedRowHandle, "AdSoyad").ToString(); int departmanId = Convert.ToInt32(gridView_personelDepartman.GetRowCellValue(gridView_personelDepartman.FocusedRowHandle, "DepartmanId")); DepartmanZimmetGetirForm ozgForm = new DepartmanZimmetGetirForm(departmanId); ozgForm.ShowDialog(); }
private void gridView_DepartmanYetkilileri_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e) { departmanAdi = gridView_DepartmanYetkilileri.GetRowCellValue(gridView_DepartmanYetkilileri.FocusedRowHandle, "DepartmanAdi") .ToString(); departmanSorumlusu = gridView_DepartmanYetkilileri.GetRowCellValue(gridView_DepartmanYetkilileri.FocusedRowHandle, "AdSoyad") .ToString(); int odaId = Convert.ToInt32(gridView_DepartmanYetkilileri.GetRowCellValue(gridView_DepartmanYetkilileri.FocusedRowHandle, "DepartmanId").ToString()); DepartmanZimmetGetirForm ozgForm = new DepartmanZimmetGetirForm(odaId); ozgForm.ShowDialog(); }