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. Binding A Image Button. Please Help!!!Urgent

Binding A Image Button. Please Help!!!Urgent

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netwpfwcfhelp
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.
  • U Offline
    U Offline
    User 1884058
    wrote on last edited by
    #1

    Hello I have a asp.net datagrid with 4 bound columns and an item template column with an image button control. all these columns have the same datasource, i can bind the 4 bound columns just fine to their apporiate columns in the datasource but i am at my wits end as to how to get the correct image url's for all the image buttons in the item template. Please help it's rather urgent Thank you

    P 1 Reply Last reply
    0
    • U User 1884058

      Hello I have a asp.net datagrid with 4 bound columns and an item template column with an image button control. all these columns have the same datasource, i can bind the 4 bound columns just fine to their apporiate columns in the datasource but i am at my wits end as to how to get the correct image url's for all the image buttons in the item template. Please help it's rather urgent Thank you

      P Offline
      P Offline
      Plunging_Falcon
      wrote on last edited by
      #2

      Aenon, You can a code similar to this: ((ImageButton)(MyDataGrid.Items[0].Cells[2].Controls[1])).Command = _(Event handler of some sort)_; Just make sure the indexes match. Hope this helps.

      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