Actually, the problem is that the ShowHeader property of the gridview is set
to false.
But I have another problem now. My <asp:Table> in the <HeaderTemplate> of
the gridview doesn't have a border and no matter what I do, it just doesn't
work.
Please help.
Thanks.
"Jibey Jacob" wrote:
> Hi:
>
> I placed an <asp:Table> inside the HeaderTemplate of a TemplateField of a
> GridView. The contents of the <asp:Table just doesn't show up. Can someone
> please tell me why?
>
> Thanks,
>
> Jibey
>
> <asp:GridView Width="100%" CellPadding="0"
> CellSpacing="0" BorderStyle="none" ID="gvApps" runat="server"
> AllowPaging="false" PageSize="1"
> OnPageIndexChanging="gvApps_PageIndexChanging" AutoGenerateColumns="False"
> ShowHeader="false" OnRowDataBound="gvApps_RowDataBound">
> <PagerSettings Visible="True" />
> <AlternatingRowStyle BackColor="White" />
> <Columns>
> <asp:TemplateField
> ConvertEmptyStringToNull="False">
> <HeaderTemplate>
> <asp:Table ID="tblHeader" runat="server"
> CellPadding="0" CellSpacing="0" Width="100%">
> <asp:TableRow runat="server">
> <asp:TableCell Font-Bold="true"
> Text="Application Mnemonic and Name" runat="server" RowSpan="2" Width="25%"
> HorizontalAlign="center" VerticalAlign="middle" >
> </asp:TableCell>
> <asp:TableCell Font-Bold="true"
> Text="Application Business Value" runat="server" RowSpan="2" Width="20%"
> HorizontalAlign="center" VerticalAlign="middle" >
> </asp:TableCell>
> <asp:TableCell Font-Bold="true"
> Text="Level of Risk" runat="server" ColumnSpan="3" HorizontalAlign="center"
> Width="55%" >
> </asp:TableCell>
> </asp:TableRow>
> <asp:TableRow runat="server">
> <asp:TableCell Font-Bold="true"
> Text="Current" runat="server" HorizontalAlign="center" Width="19%" >
> </asp:TableCell>
> <asp:TableCell Font-Bold="true"
> Text="Next Year" runat="server" HorizontalAlign="center" Width="18%" >
> </asp:TableCell>
> <asp:TableCell Font-Bold="true"
> Text="In 2 Years" runat="server" HorizontalAlign="center" Width="18%" >
> </asp:TableCell>
> </asp:TableRow>
> </asp:Table>
> </HeaderTemplate>
> <ItemTemplate>
>
> The rest of the code is omitted for clarity.
>
> Please help!
|