Solved

Link column in gridview

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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
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 video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

856 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