对 griview获取的数据添加方法 6月

时间:2024-08-08 09:33:32

<asp:TemplateField HeaderText="日期">
                            <HeaderStyle CssClass="mi_right_tit2" ForeColor="Black" />
                            <ItemStyle Width="10%" HorizontalAlign="Center" CssClass="Column" />
                            <ItemTemplate>
                                <%#GetEffectiveDate(Eval("IssueDate"))%>   //调用后台的GetEffectiveDate方法,gridview获取的数据作为参数
                            </ItemTemplate>
</asp:TemplateField>