private void BindGrid() { grdTrips.DataSource = m_Repository.AllClosedTrips().Select <Trip, object>(new Func <Trip, object>(t => new { ShortTripDesc = t.TripDescription.PadRight(50).Substring(0, 50), t.TripId, t.TripDate, t.Vehicle.RegistrationNumber, t.ProjectName })).ToList(); grdTrips.DataBind(); }