【发布时间】:2010-11-19 08:11:30
【问题描述】:
我需要将 ComponentArt Grid 中的内容导出到文件中,最好是 csv 格式的 excel。
我想知道是否有人知道如何最好地完成这项任务。目前,我们在网格中填充了数据,并使用客户端模板在向用户显示之前执行了一些小的操作。
应用的模板示例如下:
<ComponentArt:ClientTemplate Id="PostTemplate">
## DataItem.GetMember("LastPostBy").Value ##<br />## DataItem.GetMember("LastPostDate").Value ##
</ComponentArt:ClientTemplate>
Where the column definitions are:
<ComponentArt:GridColumn Width="140" HeadingText="Last Post By " DataCellClientTemplateId="PostTemplate" />
<ComponentArt:GridColumn DataField="LastPostBy" Visible="false" />
<ComponentArt:GridColumn DataField="LastPostDate" Visible="false" />
因此,当导出网格时,我希望文件包含导出时网格中的内容,包括任何可能可见的模板化更改。
提前感谢您的帮助。
【问题讨论】:
标签: excel templates grid export componentart