public DataTable getBookings() { localhost.WebServiceDBReader dbReader = new localhost.WebServiceDBReader(); localhost.Booking[] bookingList = dbReader.GetBookings(); DataTable dtbl = new DataTable(); dtbl.Columns.Add("Customer No."); dtbl.Columns.Add("Destination No."); dtbl.Columns.Add("Date out"); dtbl.Columns.Add("Date home"); dtbl.Columns.Add("Booking No."); foreach (localhost.Booking b in bookingList) { var row = dtbl.NewRow(); row["Customer No."] = b.customerNbr; row["Destination No."] = b.destinationNbr; row["Date out"] = b.dateOut; row["Date home"] = b.dateHome; row["Booking No."] = b.bookingNbr; dtbl.Rows.Add(row); } return(dtbl); }