private void HandleLoadedCommand(object parameter) { this.ProjectsList = new ObservableCollection <ProjectListDto>(this.ProjectService.GetProjectsForDropdown()); this.creatorId = this.UserService.GetUsernames().SingleOrDefault(x => x.Username == EventCreator).Id; if (this.SelectedCalendarEvent != null) { this.Id = (int)this.selectedCalendarEvent.Row.ItemArray[0]; this.Title = (string)this.selectedCalendarEvent.Row.ItemArray[1]; this.Description = (string)this.selectedCalendarEvent.Row.ItemArray[2]; this.StartDate = (DateTime)this.selectedCalendarEvent.Row.ItemArray[3]; this.EndDate = (DateTime)this.selectedCalendarEvent.Row.ItemArray[4]; this.selectedColor = (Color)this.selectedCalendarEvent.Row.ItemArray[5]; var projectDto = (ProjectListDto)SelectedCalendarEvent.Row.ItemArray[7];//You saw this one! It is important to do this selection, because it will not select username if you directly pass the dto. this.SelectedProject = ProjectsList.SingleOrDefault(x => x.Id == projectDto.Id); } }