I want to bind header text on gridview from dataset table.
Dataset Table1:
S.No Employee 15-Feb 16-Feb 17-Feb
1 Kumar 1 2 3
2 Jeeva 1 2 3
I want to bind these date(15-Feb,16-Feb,17-Feb) on gridview header, these are coming dynamically from Database
Any ideas? Thanks in advance
I hope this helps
<asp:TemplateField HeaderText="15-Feb">
<ItemTemplate>
<asp:Label ID="lblProjectName" runat="server" Text='<%# Bind("ProjectName") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="16-Feb">
<ItemTemplate>
<asp:Label ID="lblActivityDate" runat="server" Text='<%# Bind("ActivityDate") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.