求助 Gridview
Gridview 中有一个模板列,我希望绑定的是系统的时间,不是数据源中的字段 :
<asp:Label runat="server" Text='<%# Eval(DateTime.Now.ToString()) %>'></asp:Label>
这样写会报错,error:DataBinding: 'System.Data.DataRowView' does not contain a property with the name '2010-9-14 10:38:40'.
请问应该如何修改。
PS: 用Eval绑定的是不是一定是数据源中的列?