S
Stanley
I have a control that I have built a custom designer that shows the content
from an ItemTemplate. However the Datagrid never shows up in the designer.
It seems at this point that the Datagrid is the only thing that will not
show up in the designer for me and this is an issue for me because it will
throw off the layout. Now the Datagrid does show up at run-time perfectly
fine. But I need it to show up in the designer. Is there something I am
missing?
Basically to make things show up from the item template I do:
c is actually a HTMLTableCell and then I use TextWriter to output the end
results of my objects in the designer. But as I said the Datagrid does not
show up.
TIA
-Stanley
from an ItemTemplate. However the Datagrid never shows up in the designer.
It seems at this point that the Datagrid is the only thing that will not
show up in the designer for me and this is an issue for me because it will
throw off the layout. Now the Datagrid does show up at run-time perfectly
fine. But I need it to show up in the designer. Is there something I am
missing?
Basically to make things show up from the item template I do:
Code:
'If the ItemTemplate is defined, use it
If Not _itemTemplate Is Nothing Then
Dim itemContainer As New Panel
_itemTemplate.InstantiateIn(itemContainer)
itemContainer.ID = "ItemTemplate1"
'Add the item to the table
c.Controls.Add(itemContainer)
End If
c is actually a HTMLTableCell and then I use TextWriter to output the end
results of my objects in the designer. But as I said the Datagrid does not
show up.
TIA
-Stanley