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. Custom Control binding in DataGrid

Custom Control binding in DataGrid

Scheduled Pinned Locked Moved ASP.NET
questionhtmlvisual-studiowpfwcf
1 Posts 1 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.
  • P Offline
    P Offline
    Paul Riley
    wrote on last edited by
    #1

    Let's see if anyone here knows this: I've written a WebControl-derived custom control that's basically a fancy hyperlink (but not derived from Hyperlink). It works fine when I run the application regardless of where the tag is on the page, it also works fine in design mode when I'm not binding it to anything. But if I drop it into a DataGrid Template column and databind the Text property to the container then it simply becomes invisible. I want it to appear like any other hyperlink in a DataGrid: as a link with text "Databound", like Databound. When debugging the Designer (derived from ControlDesigner) using a second instance of the IDE, I have found that the Designer class's GetDesignTimeHtml() method is not being called at all. So what is called to get the design time HTML for a databound column? Any clues would be nice at this point :( Paul

    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