Dynamic URLField and URLFormat String for hyperlink column in Datagrid

Discussion in 'ASP .Net Web Controls' started by Sudhir, Aug 22, 2003.

  1. Sudhir

    Sudhir Guest

    I have autogeneratecolumns=true in a datagrid. Is it
    possible to have a hyperlink column with a URLfield and
    formatstring that are dynamically generated without hard
    coding them.

    <asp:HyperLinkColumn Text="Select" DataNavigateUrlField=<%
    =ds.Tables("Codes").Columns(0).ColumnName%>
    DataNavigateUrlFormatString=<%=path &"?ID={0}"%
    >></asp:HyperLinkColumn>


    Is there any other way like using a template column for a
    hyperlink column?
     
    Sudhir, Aug 22, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?V2FyYW4=?=

    HyperLink Column and Button Column in a DataGrid

    =?Utf-8?B?V2FyYW4=?=, Aug 9, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    628
    =?Utf-8?B?V2FyYW4=?=
    Aug 9, 2005
  2. =?Utf-8?B?ZGF2aWQ=?=
    Replies:
    11
    Views:
    1,029
    deandany
    Jul 17, 2006
  3. davetichenor
    Replies:
    1
    Views:
    914
    Eliyahu Goldin
    Oct 30, 2006
  4. Adam Getz

    Dynamic DataGrid Hyperlink column

    Adam Getz, Jul 7, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    2
    Views:
    203
    Daniel Bass
    Jul 8, 2003
  5. Dave
    Replies:
    0
    Views:
    1,002
Loading...

Share This Page