Ask a Question related to ASP.NET General, Design and Development.
-
Claire Reed #1
change datagrid column to hyperlink
Hi All,
I have a datagrid and am autogenerating columns. I would like one of
the columns to be a hyperlink column after the data has been bound
i.e. I already have a column with the data in it (a name) and I want
it to be converted to a hyperlink. Is it possible to do this at
runtime?
thanks
Claire
Claire Reed Guest
-
Hyperlink template column and change link text based on Condition
How do I create a Hyperlink column in a Datagrid which launches a pop-up window, and have the text in the hyperlink change based on a condition? I'm... -
Hyperlink column in datagrid
I am trying to insert a hyperlink column in a datagrid the field consist of a http://www.something.no/text.asp?id=FieldID where FieldID is the... -
color of hyperlink column of datagrid
Hi, I have a web page which written by ASP.net. The page contains a datagrid. Inside a datagrid, there is a hyperlink column. When user... -
Getting ID from Datagrid hyperlink column
I have a datagrid containing a column: <asp:Hyperlinkcolumn headertext="View/Edit" Datanavigateurlfield="individualid"... -
Dynamic DataGrid Hyperlink column
Is there a way to dynamically set the field DataNavigateUrlFormatString in a hyperlink column of a datagrid? Currently, if a user clicks on the... -
Marina #2
Re: change datagrid column to hyperlink
I don't think you can do this with columns generated at runtime.
What you can do, is have sql like: select '<a href="' + MyUrlColumn + '">'
+ MyUrlColumn + '</a>' as 'The Link' from MyTable
This basically builds an <a> link in the SQL itself, and since the datagrid
treats and text as HTML, this will display a link.
"Claire Reed" <clairereedo@yahoo.co.uk> wrote in message
news:c64fb943.0308040831.6b4b6d1c@posting.google.c om...> Hi All,
>
> I have a datagrid and am autogenerating columns. I would like one of
> the columns to be a hyperlink column after the data has been bound
> i.e. I already have a column with the data in it (a name) and I want
> it to be converted to a hyperlink. Is it possible to do this at
> runtime?
>
> thanks
>
> Claire
Marina Guest



Reply With Quote

