Hi friends
I have in datagrid view 3 hypertext links in each lines I have links with other records and I want when I select a line and I click on one of these three links it shows me a messagebox for example
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Madhanmohan DevarajanRank #342 · 7.3K reputationPosted May 3, 2017, 10:29 AM EDT
DataGridViewCellEventArgs e)
{
if (dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value != null)
{ string cellval = dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString();
if (cellval.Contains("google"))
{
Form2 frm = new Form2(this);
frm.Show();
}
}
}
Madhanmohan DevarajanRank #342 · 7.3K reputationPosted May 2, 2017, 11:18 AM EDT
ma oumlRank #3,005 · 479 reputationPosted May 2, 2017, 11:21 AM EDT
Madhanmohan Devarajan
Madhanmohan DevarajanRank #342 · 7.3K reputationPosted May 2, 2017, 11:27 AM EDT
ma oumlRank #3,005 · 479 reputationPosted May 2, 2017, 11:30 AM EDT
Madhanmohan DevarajanRank #342 · 7.3K reputationPosted May 2, 2017, 12:05 PM EDT
ADO.NET: http://msdn2.microsoft.com/en-us/library/h43ks021(VS.71).aspx
ASP.NET: http://msdn2.microsoft.com/en-us/asp.net/default.aspx
ma oumlRank #3,005 · 479 reputationPosted May 2, 2017, 12:10 PM EDT
Madhanmohan DevarajanRank #342 · 7.3K reputationPosted May 2, 2017, 12:20 PM EDT
Ravi SangtaniRank #1,947 · 751 reputationPosted May 2, 2017, 10:18 PM EDT
ma oumlRank #3,005 · 479 reputationPosted May 3, 2017, 4:18 AM EDT
Ravi SangtaniRank #1,947 · 751 reputationPosted May 3, 2017, 5:43 AM EDT
ma oumlRank #3,005 · 479 reputationPosted May 3, 2017, 6:19 AM EDT
Ravi Sangtani
Madhanmohan DevarajanRank #342 · 7.3K reputationPosted May 3, 2017, 8:40 AM EDT
DataGridViewCellEventArgs e)
{
if (dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value != null)
{
MessageBox.Show(dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString());
}
}
ma oumlRank #3,005 · 479 reputationPosted May 3, 2017, 9:11 AM EDT
Madhanmohan Devarajan
ma oumlRank #3,005 · 479 reputationPosted May 3, 2017, 10:54 AM EDT
ma oumlRank #3,005 · 479 reputationPosted May 2, 2017, 12:39 PM EDT
ma oumlRank #3,005 · 479 reputationPosted May 2, 2017, 12:55 PM EDT
ma oumlRank #3,005 · 479 reputationPosted May 3, 2017, 12:38 AM EDT
Ravi Sangtani