我有一個GridView,它工作正常。但是當我沒有結果時,標題消失。有沒有辦法顯示它沒有代碼隱藏?即使結果爲null時,也會顯示gridview的標題ASP.NET
我使用3.5
<asp:DropDownList ID="DropDownList1"
runat="server"
AutoPostBack="True"
DataSourceID="SqlDataSource1"
DataTextField="Categorie"
DataValueField="Cat_ID"
AppendDataBoundItems="True">
</asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource1"
runat="server"
ConnectionString="<%$ ConnectionStrings:Goed %>"
SelectCommand="SELECT * FROM [tbl_Cat]">
</asp:SqlDataSource>
請發表您的代碼 – nmat
編輯它;)對不起忘了它 – DiederikEEn