Solved

Link column in gridview

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

747 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

9 Experts available now in Live!

Get 1:1 Help Now