Solved

Link column in gridview

Posted on 2007-04-11
1
1,081 Views
Last Modified: 2013-11-07
Hi,
 I have a grid view with contain 2 columns
1) file name
2) opetion to delete the row

How do I display the column of file name as a link to open the file, all the files are in the same folder


Thanks
0
Comment
Question by:madmare
1 Comment
 
LVL 1

Accepted Solution

by:
toth3max earned 500 total points
ID: 18890122
Hello!
The file name column should be of the type HyperLinkField. Then you can set the NavigateUrl property to be the file name.

If you have the GridView in design mode edit the columns in the GridView task pane and replace the file name column with a HyperLinkField. Or you could convert the file name column to a TemplateField and edit the template (normally ItemTemplate) and replace the Label with a HyperLink. Don't forget to bind the NavigateUrl.

Hope this helps!
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now