jump to navigation

Always show GridView header and footer if data soure is empty December 16, 2008

Posted by mcamail2002 in ADO.NET.
1 comment so far

<EmptyDataTemplate>
<asp:Table ID="tblEmptyHeadCount" runat="server" Width="100%">
<asp:TableRow ID="TableRow17" runat="server" HorizontalAlign="right" Width="100%">
<asp:TableCell ID="TableCell42" runat="server" Width="15%"></asp:TableCell>
<asp:TableCell ID="TableCell43" runat="server" Width="40%" HorizontalAlign="center">
<asp:Label ID="lbl1" runat="server" Text="Position"></asp:Label>
</asp:TableCell>
<asp:TableCell ID="TableCell48" runat="server" Width="15%" HorizontalAlign="center">
<asp:Label ID="Label6" runat="server" Text="FTE Salary"></asp:Label>
</asp:TableCell>
<asp:TableCell ID="TableCell49" runat="server" Width="10%" HorizontalAlign="center">
<asp:Label ID="Label7" runat="server" Text="HC"></asp:Label>
</asp:TableCell>
<asp:TableCell ID="TableCell50" runat="server" Width="20%" HorizontalAlign="center">
</asp:TableCell>
</asp:TableRow>
</asp:Table></EmptyDataTemplate>