473,404 Members | 2,179 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Hyperlink column?

I have a bound Datagrid in my Windows Application.
Is it possible to have one of the bound columns in the grid behave as a
hyperlink, so that when clicked, it opens up a new window with some info?

Any pointers/suggestions?


Nov 7 '07 #1
2 2460
Yes, but you have to customize the columns that are displayed yourself
rather than just using the default binding. If you click on the button next
to the Columns property in the Property window for a DataGridView control
it will bring up the columns editor. From there you can add columns of
various types. One of the column types is a DataGridViewLinkColumn.

--
Andrew Faust
andrew[at]andrewfaust.com
http://www.andrewfaust.com
"Gary" <ba****@gmail.comwrote in message
news:um**************@TK2MSFTNGP05.phx.gbl...
>I have a bound Datagrid in my Windows Application.
Is it possible to have one of the bound columns in the grid behave as a
hyperlink, so that when clicked, it opens up a new window with some info?

Any pointers/suggestions?

Nov 7 '07 #2
Thanks Andrew,

I am using VS.NET 2003... it doesnt have the DataGridView control :(

What are the alternatives?
"Andrew Faust" <an****@andrewfaust.comwrote in message
news:45**********************************@microsof t.com...
Yes, but you have to customize the columns that are displayed yourself
rather than just using the default binding. If you click on the button
next to the Columns property in the Property window for a DataGridView
control it will bring up the columns editor. From there you can add
columns of various types. One of the column types is a
DataGridViewLinkColumn.

--
Andrew Faust
andrew[at]andrewfaust.com
http://www.andrewfaust.com
"Gary" <ba****@gmail.comwrote in message
news:um**************@TK2MSFTNGP05.phx.gbl...
>>I have a bound Datagrid in my Windows Application.
Is it possible to have one of the bound columns in the grid behave as a
hyperlink, so that when clicked, it opens up a new window with some info?

Any pointers/suggestions?


Nov 7 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ravikanth[MVP] | last post by:
Hi asp:DataGrid id="YourID" runat="server" AutoGenerateColumns="False"> <Columns> <asp:TemplateColumn HeaderText="Sample Column"> <ItemTemplate> <asp:Hyperlink runat="server" Text='<%...
2
by: damonf | last post by:
I'm currently trying to add an ASP hyperlink to a template column in a datagrid. The normal hyperlink column doesn't give me the ability to add attributes to the item. In my grid there are four...
2
by: Alex | last post by:
I would like to have one column in my DataGrid that content acts as a hyperlink. In addition to that I would like that the content is databound to a DataSet source. If I create a hyperlink...
9
by: Paul | last post by:
Hi I have a data grid with a hyperlink column. the colum has numbers like 00001,000002, ect. Just wondering how to get the text value of the cell as tempstring =...
1
by: D. Shane Fowlkes | last post by:
Hello All. I keep asking for help with this on the www.asp.net forums and nobody seems to be able to help. What I'm trying to accomplish is very simple. I simply want to create a Hyperlink...
3
by: Tim::.. | last post by:
I currently have the following datagrid but want to turn the name and email column into a hyperlink in the codebehind! Can someone please tell me how I achieve this! Thanks Private Sub...
2
by: Jason | last post by:
I have a data grid with a hyperlink column. The hyperlink is created by a class that extracts the link from an XML Document. How can I populate the hyperlink column in the data grid with the...
10
by: david | last post by:
Hi, all: I need a help from you about DataGrid control. I created a DataGrid, dg, in design view of .NET visual Stadio and use the builder to add a Hyperlink column to dg. I want to try to assign...
19
by: Joe | last post by:
I have an aspx page (referred to here as page_1) with a datagrid whose first column contains hyperlinks. When a user clicks one of these hyperlinks, he will navigate to another aspx page (referred...
3
by: TPhelps | last post by:
I have a sample of an unbound (autogeneratecolumns is true) sortable/pagable datagrid that works. I want to change one of the columns to a hyperlink. The examples I find use a bound column. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.