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. Insert a control inside a datagrid cell?

Insert a control inside a datagrid cell?

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
3 Posts 3 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.
  • R Offline
    R Offline
    RickardB
    wrote on last edited by
    #1

    Hello, I would like to insert a Webserver control inside a cell in a datagrid. My datagrid is bound to a IList and the columns are generated automatically. Anyone who knows how to do this? Rickard

    D N 2 Replies Last reply
    0
    • R RickardB

      Hello, I would like to insert a Webserver control inside a cell in a datagrid. My datagrid is bound to a IList and the columns are generated automatically. Anyone who knows how to do this? Rickard

      D Offline
      D Offline
      Dr_X
      wrote on last edited by
      #2

      Turn the column into a template column inside the property builder. Afterwarda, right click on the grid then edit your template column. You can put what ever controls you would like inside the template. You can then bind them using property list or directly through html. Michael I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)

      1 Reply Last reply
      0
      • R RickardB

        Hello, I would like to insert a Webserver control inside a cell in a datagrid. My datagrid is bound to a IList and the columns are generated automatically. Anyone who knows how to do this? Rickard

        N Offline
        N Offline
        Not Active
        wrote on last edited by
        #3

        You can override the databind and/or itemcreated events and add/remove/modify controls as needed.

        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