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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Madhanmohan DevarajanPosted May 3, 2017, 2:29 PM
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();
}
}
}
ma oumlPosted May 3, 2017, 2:54 PM
ma oumlPosted May 3, 2017, 1:11 PM
Madhanmohan Devarajan
Madhanmohan DevarajanPosted May 3, 2017, 12:40 PM
DataGridViewCellEventArgs e)
{
if (dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value != null)
{
MessageBox.Show(dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString());
}
}
ma oumlPosted May 3, 2017, 10:19 AM
Ravi Sangtani
Ravi SangtaniPosted May 3, 2017, 9:43 AM
ma oumlPosted May 3, 2017, 8:18 AM
ma oumlPosted May 3, 2017, 4:38 AM
Ravi Sangtani
Ravi SangtaniPosted May 3, 2017, 2:18 AM
ma oumlPosted May 2, 2017, 4:55 PM
ma oumlPosted May 2, 2017, 4:39 PM
Madhanmohan DevarajanPosted May 2, 2017, 4:20 PM
ma oumlPosted May 2, 2017, 4:10 PM
Madhanmohan DevarajanPosted May 2, 2017, 4:05 PM
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 oumlPosted May 2, 2017, 3:30 PM
Madhanmohan DevarajanPosted May 2, 2017, 3:27 PM
ma oumlPosted May 2, 2017, 3:21 PM
Madhanmohan Devarajan
Madhanmohan DevarajanPosted May 2, 2017, 3:18 PM