HeaderText doesn't appear [modified]
-
Hi, I have the following part of datagrid <asp:TemplateColumn HeaderText="Select All"> <HeaderTemplate> <input type="checkbox" id="chkall" /> </HeaderTemplate> <ItemTemplate> <input type="checkbox" id="chk" runat="Server"/> </ItemTemplate> </asp:TemplateColumn> the problem HeaderText "Select All" doesn't appear, it just checkbox header appear here. how I can solve this problem. Regards.
modified on Saturday, January 10, 2009 1:52 PM
-
Hi, I have the following part of datagrid <asp:TemplateColumn HeaderText="Select All"> <HeaderTemplate> <input type="checkbox" id="chkall" /> </HeaderTemplate> <ItemTemplate> <input type="checkbox" id="chk" runat="Server"/> </ItemTemplate> </asp:TemplateColumn> the problem HeaderText "Select All" doesn't appear, it just checkbox header appear here. how I can solve this problem. Regards.
modified on Saturday, January 10, 2009 1:52 PM
-
Hi, I have the following part of datagrid <asp:TemplateColumn HeaderText="Select All"> <HeaderTemplate> <input type="checkbox" id="chkall" /> </HeaderTemplate> <ItemTemplate> <input type="checkbox" id="chk" runat="Server"/> </ItemTemplate> </asp:TemplateColumn> the problem HeaderText "Select All" doesn't appear, it just checkbox header appear here. how I can solve this problem. Regards.
modified on Saturday, January 10, 2009 1:52 PM
Hi, Please try this:
asp:TemplateColumn
<HeaderTemplate>
<input type="checkbox" id="chkall" Text="Select All" />
</HeaderTemplate>
<ItemTemplate>
<input type="checkbox" id="chk" runat="Server"/>
</ItemTemplate>
</asp:TemplateColumn>or:
asp:TemplateColumn
<HeaderTemplate>
<table>
<tr>
<td>Select All</td>
</tr>
<tr>
<td>
<input type="checkbox" id="chkall" />
</td>
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<input type="checkbox" id="chk" runat="Server"/>
</ItemTemplate>
</asp:TemplateColumn>Regards, Rajdev K R