Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Ultra WebGrid Hyperlink

Ultra WebGrid Hyperlink

Scheduled Pinned Locked Moved C#
questionsysadmindocker
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cppdotnet
    wrote on last edited by
    #1

    Hi I am using a UltraWebGrid from Infragistics. One of the column is a hyperlink. I am able to pass one value through URL but how do i pass value from next coulmn also through URL. Here is what i have igtbl:UltraGridColumn AllowResize="Free" AllowUpdate="No" BaseColumnName="NAME" HeaderText="Name"> Header Caption="Name"> Footer> igtbl:UltraGridColumn> igtbl:TemplatedColumn AllowResize="Free" AllowUpdate="No" BaseColumnName="CITY" DataType="System.Int32" HeaderText="City Name" Type="HyperLink"> CellTemplate> asp:HyperLink ID="HyperLink1" runat="server" Text="<%# Container.Text %>" NavigateUrl='<%# "Detail.aspx?CITY=" + Container.Text + "&NAME=" ????????????HOW DO I PASS NAME %>' /> CellTemplate> Header Caption="City"> Footer> igtbl:TemplatedColumn> How do I pass the Name also through URL Thanks -- modified at 4:15 Wednesday 12th April, 2006

    S 1 Reply Last reply
    0
    • C cppdotnet

      Hi I am using a UltraWebGrid from Infragistics. One of the column is a hyperlink. I am able to pass one value through URL but how do i pass value from next coulmn also through URL. Here is what i have igtbl:UltraGridColumn AllowResize="Free" AllowUpdate="No" BaseColumnName="NAME" HeaderText="Name"> Header Caption="Name"> Footer> igtbl:UltraGridColumn> igtbl:TemplatedColumn AllowResize="Free" AllowUpdate="No" BaseColumnName="CITY" DataType="System.Int32" HeaderText="City Name" Type="HyperLink"> CellTemplate> asp:HyperLink ID="HyperLink1" runat="server" Text="<%# Container.Text %>" NavigateUrl='<%# "Detail.aspx?CITY=" + Container.Text + "&NAME=" ????????????HOW DO I PASS NAME %>' /> CellTemplate> Header Caption="City"> Footer> igtbl:TemplatedColumn> How do I pass the Name also through URL Thanks -- modified at 4:15 Wednesday 12th April, 2006

      S Offline
      S Offline
      Scott Hanslip
      wrote on last edited by
      #2

      If you want to define a different hyperlink per row you can use the InitializeRow event. Here is an example from the Infragistics website: private void UltraWebGrid1_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { e.Row.Cells[0].Value = "<a href='http://www.infragistics.com/go.aspx?id=" + e.Row.Cells[0].Value.toString() + "' >" + e.Row.Cells[0].Value.toString() + ""; } Check out here for more info. Hope that helps! -- modified at 13:45 Wednesday 12th April, 2006

      C 1 Reply Last reply
      0
      • S Scott Hanslip

        If you want to define a different hyperlink per row you can use the InitializeRow event. Here is an example from the Infragistics website: private void UltraWebGrid1_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { e.Row.Cells[0].Value = "<a href='http://www.infragistics.com/go.aspx?id=" + e.Row.Cells[0].Value.toString() + "' >" + e.Row.Cells[0].Value.toString() + ""; } Check out here for more info. Hope that helps! -- modified at 13:45 Wednesday 12th April, 2006

        C Offline
        C Offline
        cppdotnet
        wrote on last edited by
        #3

        Yes.. this is exactly what I want to do but I have templated hyperlink column inside Ultrawebgrid.. if i don't specify NavigationURL then I don't get the link ... asp:HyperLink ID="HyperLink1" runat="server" Text="<%# Container.Text %>" NavigateUrl='<%# "Detail.aspx?Name=" + Container.Text + "&City=" ????? How do i get the city name which is is next coulmn %>' /> Thanks

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups