弘帝企业智能建站系统交流平台

 找回密码
 立即注册
查看: 2160|回复: 0

【C#】GridView的TemplateField活用

[复制链接]
发表于 2016-5-27 15:31:14 | 显示全部楼层 |阅读模式
                <asp:TemplateField HeaderText="使用起止日期" HeaderStyle-Width="240">
                    <ItemTemplate>
                        <asp:Label ID="StartDate" runat="server" Text="<%# Bind('HD_StartDate')%>" /> -
                        <asp:Label ID="EndDate" runat="server" Text="<%# Bind('HD_EndDate')%>"/>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|弘帝企业智能建站系统 ( 皖ICP备07503252号 )

GMT+8, 2024-4-26 05:29 , Processed in 0.098695 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表