I retrieve external data including links to profile pages
In the “Url” column of the DataGridView, I configured it like this:
Column Type: DataGridViewLinkColumn
UseColumnTexForLink: True
Text: See profile
When I run the program, I receive the data with the links and the text “See profile”, but when I click on it, an exception is thrown: “System.ComponentModel.Win32Exception: ‘The specified file cannot be found'”.
On the other hand, with UseColumnTexForLink= False and Text=empty, the links open correctly.
Do you have any suggestions or ideas?
Thanks
<code>foreach (UserRank user in userRanks)
{
// Adding data to the DataGridView
dataGridViewTopRanking.Rows.Add(user.NickName, user.Rank, user.FollowerCount, user.PositionShared, user.LeaderboardUrl);
}
private void dataGridViewTopRanking_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
string url = dataGridViewTopRanking.Rows[e.RowIndex].Cells["Link"].Value.ToString();
System.Diagnostics.Process.Start(url);
}
</code>
<code>foreach (UserRank user in userRanks)
{
// Adding data to the DataGridView
dataGridViewTopRanking.Rows.Add(user.NickName, user.Rank, user.FollowerCount, user.PositionShared, user.LeaderboardUrl);
}
private void dataGridViewTopRanking_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
string url = dataGridViewTopRanking.Rows[e.RowIndex].Cells["Link"].Value.ToString();
System.Diagnostics.Process.Start(url);
}
</code>
foreach (UserRank user in userRanks)
{
// Adding data to the DataGridView
dataGridViewTopRanking.Rows.Add(user.NickName, user.Rank, user.FollowerCount, user.PositionShared, user.LeaderboardUrl);
}
private void dataGridViewTopRanking_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
string url = dataGridViewTopRanking.Rows[e.RowIndex].Cells["Link"].Value.ToString();
System.Diagnostics.Process.Start(url);
}