Hi,
I'm trying to get my DataGrid to show headers and footers when no rows are
returned from the datasource. Below is code that shows the first
TemplateField. Is there an easy way to get at least the footer to show? I
want to be able to insert a new row using the footer. Thanks...
<asp:GridView ID="gvMaterials " runat="server"
AutoGenerateCol umns="False"
DataSourceID="d sMaterials" ShowFooter="Tru e" Width="100%"
AutoGenerateEdi tButton="True">
<Columns>
<asp:TemplateFi eld HeaderText="Mat erial:">
<FooterTemplate >
<asp:TextBox ID="txtDescript ion"
runat="server"> </asp:TextBox>
</FooterTemplate>
<EditItemTempla te>
<asp:TextBox ID="txtDescript ion" runat="server"
Text='<%# Bind("Descripti on") %>'></asp:TextBox>
</EditItemTemplat e>
<ItemTemplate >
<asp:Label ID="lblDescript ion" runat="server" Text='<%#
Bind("Descripti on") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateFie ld>
[etc...]
--
My BizTalk blog:
http://stevestechnotes.blogspot.com/