public async Task FetchLeaderboard(int page) { kryptonDataGridView2.Rows.Clear(); Uri apiLOB = new Uri(@"https://aoe2.net/api/leaderboard?game=aoe2de&leaderboard_id=3&start=" + page + "&count=10"); string jsonLOBBIES = await DownloadStringAsync(apiLOB); //MessageBox.Show(jsonLOBBIES.Substring(0, 8)); var ldb = LeaderBoard.FromJson(jsonLOBBIES); int i = 1; foreach (var l in ldb.Leaderboard) { i++; LinkLabel ln = new LinkLabel(); Button btn = new Button(); ln.Text = "View"; ln.Name = "view" + i.ToString(); btn.Name = "btn" + i.ToString(); btn.Text = "Join"; kryptonDataGridView2.Rows.Add(l.Rank, l.Rating, l.Name, l.Games, streaker(l.Streak), l.Wins, l.Drops + @"%", "View", @"https://www.ageofempires.com/stats/?profileId=" + l.ProfileId + @"&game=age2"); } }