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
  1. Home
  2. Web Development
  3. ASP.NET
  4. datagrid in C#

datagrid in C#

Scheduled Pinned Locked Moved ASP.NET
csharpdesignhelp
2 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.
  • H Offline
    H Offline
    HowRU
    wrote on last edited by
    #1

    HI all, On my web form i have a datagrid DGrid.DataSource=ds; DGrid.DataBind(); in this datagrid I want to add a hyperlink at runtime to the existing column....i dont want to add it at design time ...& want to give a backcolor to the first row.... so plz help me... thanks....

    A 1 Reply Last reply
    0
    • H HowRU

      HI all, On my web form i have a datagrid DGrid.DataSource=ds; DGrid.DataBind(); in this datagrid I want to add a hyperlink at runtime to the existing column....i dont want to add it at design time ...& want to give a backcolor to the first row.... so plz help me... thanks....

      A Offline
      A Offline
      Angel Reyes
      wrote on last edited by
      #2

      I believe your answer can be found in the ItemDataBound Event[^]. Basically what you'll want to do is to add logic to this event that will create the hyperlink and add it to the datagrid column it needs to be in. You'll also want to apply the backcolor here in this method. Datagrid Girl[^] has quite a bit of good info that might help you.

      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