473,320 Members | 2,024 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,320 software developers and data experts.

hyperlink in grid

How can I create a hyperlink in a datagrid were I'm autogenerating the
columns? I need to have a link to the document listed in the grid.
Mar 14 '06 #1
5 1972
http://www.mycodekb.com/Demo7.asp
--
Paul Zanbaka
Sharepoint Adminstrator and DBA
www.mycodekb.com
"CSharpguy" wrote:
How can I create a hyperlink in a datagrid were I'm autogenerating the
columns? I need to have a link to the document listed in the grid.

Mar 14 '06 #2
Add a HyperLinkColumn

HTH

Elton Wang

"CSharpguy" wrote:
How can I create a hyperlink in a datagrid were I'm autogenerating the
columns? I need to have a link to the document listed in the grid.

Mar 14 '06 #3
I know how to add the hyperlink if I'm binding the colums through the
designer. How can you add a hyperlink to a column if I'm adding the columns
via code and not the designer? Binding the columns through the designer will
not work in this case due to the grid columns change based on the users
selection from the drop down

"Elton W" wrote:
Add a HyperLinkColumn

HTH

Elton Wang

"CSharpguy" wrote:
How can I create a hyperlink in a datagrid were I'm autogenerating the
columns? I need to have a link to the document listed in the grid.

Mar 14 '06 #4
You can add HyperLinkColumn. Then in datagrid_ItemDataBound event to build
its URL accouding to data source data. You can also know its position
depending on data source, e.g. datatable.Columns.Count. Anyway, why not?

HTH

Elton Wang
"CSharpguy" wrote:
I know how to add the hyperlink if I'm binding the colums through the
designer. How can you add a hyperlink to a column if I'm adding the columns
via code and not the designer? Binding the columns through the designer will
not work in this case due to the grid columns change based on the users
selection from the drop down

"Elton W" wrote:
Add a HyperLinkColumn

HTH

Elton Wang

"CSharpguy" wrote:
How can I create a hyperlink in a datagrid were I'm autogenerating the
columns? I need to have a link to the document listed in the grid.

Mar 14 '06 #5
I figured it out

"Elton W" wrote:
You can add HyperLinkColumn. Then in datagrid_ItemDataBound event to build
its URL accouding to data source data. You can also know its position
depending on data source, e.g. datatable.Columns.Count. Anyway, why not?

HTH

Elton Wang
"CSharpguy" wrote:
I know how to add the hyperlink if I'm binding the colums through the
designer. How can you add a hyperlink to a column if I'm adding the columns
via code and not the designer? Binding the columns through the designer will
not work in this case due to the grid columns change based on the users
selection from the drop down

"Elton W" wrote:
Add a HyperLinkColumn

HTH

Elton Wang

"CSharpguy" wrote:

> How can I create a hyperlink in a datagrid were I'm autogenerating the
> columns? I need to have a link to the document listed in the grid.

Mar 14 '06 #6

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

Similar topics

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: klynn | last post by:
I need to create a datagrid dynamically and add a hyperlink onto one of the columns. So the user sees that columns value and can click on it. But the hyperlink sends a value from another column...
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 =...
6
by: epigram | last post by:
I'm using the DataGrid with AutoGenerateColumns set to false and choosing which columns I want in the grid by using the <Columns> attribute. What I want to do is to create a hyperlink out of one...
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...
4
by: Satya | last post by:
Hi all, The following code is throwing a run time error "The server tag is not well formed. " <ItemTemplate> <asp:HyperLink Runat="server" ID="lnkFile"...
2
by: mdock | last post by:
Hello, I have a javascript grid on my ASP page which displays information about the history of specific units produced in our manufacturing facility. One of the results is the order number on...
1
by: Paulo | last post by:
Hi, I have a grid with a HyperLink and the hyperlink needs to link: SomePage.aspx?ID=CodeID coming from some column on table on SQL Server, the grid is already binded with the DB, but I dont know...
1
by: John | last post by:
Hi I have a grid view bound to an SqlDataSource. One of the fields in grid view is a hyperlink field. How can I set the hyperlink field's navigationurl to the value of a field coming form the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.