public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value == null) { return(""); } else { StudentDAL sd = new StudentDAL(); int filterId = ((Team)value).TeamCaptain == null ? 0 : (int)((Team)value).TeamCaptain; Student s = sd.FindAll().FirstOrDefault(x => x.ID == filterId); if (s != null) { return(s.Users.FullName); } else { return(""); } } }