如何连接互联网 [英] how to connect in internet
问题描述
你好
我有一个问题
我有一个datagrid,该datagrid的内容是名称,地址,电话电子邮件和url. tht datagrid的值如下:
姓名地址电话电子邮件网址
xyz印度123456789 test@test.com https://www.google.com
现在我的问题是,当我单击url(https://www.google.com)时,该url应该更改其颜色(超链接),以便用户可以轻松识别可以提取到mozilla或IE的内容
以及获取URl的代码是:
hello
i have one question
i have one datagrid and the content of that datagrid are name ,address,phone email and url. the value of tht datagrid are as follows:
name address phone email url
xyz india 123456789 test@test.com https://www.google.com
now my question is when i click on url(https://www.google.com),that url should change its colour(Hyperlink) so that user can easily identify that can be fetch to mozilla or IE
and the code to fetch that URl is:
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
if(e.ColumnIndex == 5) //According to my question
{
System.Diagnostics.Process.Start(dataGridView1[e.ColumnIndex, e.RowIndex].Value.ToString());
}
}
请帮助我
plz help me out
推荐答案
这些链接可能对您有所帮助.
http://stackoverflow.com/questions/3764811/add- a-hyperlink-column-for-a-winforms-datagrid-control [ http://msdn.microsoft.com/zh-我们/library/system.windows.forms.datagridviewcomboboxcolumn%28VS.90%29.aspx [
These link might be helpful to you..
http://stackoverflow.com/questions/3764811/add-a-hyperlink-column-for-a-winforms-datagrid-control[^]
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcomboboxcolumn%28VS.90%29.aspx[^]
你好,
如何填充DataGridView?
像这样:
DatagridView1.DataSource =
Hello,
how do you fill your DataGridView?
Somethink like this:
DatagridView1.DataSource =
YourDataSourceObject]
或像这样:
DataGridView1.Rows.Add(名称",地址",电话",电子邮件","URL");
YourDataSourceObject]
or like this:
DataGridView1.Rows.Add("Name", "Adress", "Phone", "EMail", "URL");
这篇关于如何连接互联网的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!