Solved

Link column in gridview

Posted on 2007-04-11
1
1,082 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

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…

823 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