I just discovered the DetailTemplate and it is great. But I build myself a genereric Grid-Control with the Tererik-Grid and I pass a RenderFragement from my Parent-Component to this Control. This works perfectly. But even if the RenderFragemt is Null, the "+" and "-" Buttons to expand and collaps the DetailTemplate are always shown. How can I hide them ?
Unfortunately this is not working:
@if (ChildContent != null)
<DetailTemplate>
{
@ChildContent
}
</DetailTemplate>
}