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