3
Answers

How to create a link in GridView

Rohatash Kumar

Rohatash Kumar

14y
2.3k
1
I have a gridView control. I want to show the page URL in the GridView as a Link in C#.

For example

My URL:

http://www.c-sharpcorner.com/Forums/AddPost.aspx?TSource=AddPost

Show that url in the GridView as a column with hyperlink.
Answers (3)
0
varun goparaju
NA 2 0 13y
Dataset ds=new Dataset();
ds.ReadXml("path of xml file");
Gridview1.Datasource=ds;
Gridview1.DataBind();