这里就是我想要做的事:删除函数调用编程
我有一个GridView,因为屏幕空间的问题,在模板列(标签控件)的一个截断文本。
我想要做的是,将该gridview导出到excel文件,但我希望该字段在导出时不会被截断。
有没有办法做到这一点?基本上我试图以编程方式删除函数调用。
这是模板列的代码:
<asp:TemplateField Header-Text="Notes">
<ItemTemplate>
<asp:Label id="lblNotes" runat="server" Text='<# TruncateText(Eval("Notes"),60) %>'></asp:label>
</ItemTemplate>
</asp:TemplateField>
出口时,你正在阅读从呈现的HTML gridview的细胞单元格的值你的意思是? – Pankaj 2012-03-05 16:42:18