How to rid of empty div that contains a GridView

前端 未结 8 765
时光说笑
时光说笑 2021-01-11 18:21

In ASP.NET Gridviews generate a table which generates a parent div container. This can break CSS layouts since there is no way to attach styles to the generated div. Is ther

8条回答
  •  孤城傲影
    2021-01-11 18:39

    You can put it inside of an asp:Panel and set the Visible property on the panel to false if the table is empty.

提交回复
热议问题