public NumOfGamesForm(int delay) { this.delay = delay; InitializeComponent(); c = new ServiceClient(new InstanceContext(this)); Player[] players = c.GetPlayers(); List<CustomPlayer> p = new List<CustomPlayer>(); for (int i = 0; i < players.Count(); i++) { string name = players[i].First_Name + " " + players[i].Last_Name; CustomPlayer customPlayer = c.GetNumOfGames(name); p.Add(customPlayer); } bindingSource1.DataSource = p; dataGridView1.DataSource = bindingSource1; dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; }