I have a templated databound custom control, and it works great. Except for one little detail. When there is no data it still displays.
Basically the control is called 'MenuSection' and consists of a Title and Items. The Items display the databound links, and so are empty when there is no data. The title just always displays.
But I don't want the title to display if the control contains no items.
I've tried this.Visible
I've tried overriding the Render() method.
I've tried overriding the RenderControl() method.
But nothing I've done so far seems to work...