我需要將ComponentArt網格中的內容導出到文件中,最好是csv格式的excel。ComponentArt:導出網格數據
我想知道如果有人有任何想法如何最好地接近這項任務。目前,我們已經在網格中填充了數據,並且在向用戶顯示之前使用客戶端模板進行一些小操作。
所應用的模板的一個例子是:
<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" />
所以當電網出口,我想該文件包含的內容是在網格在出口的那一刻起,包括任何模板的變化,可能如果可能的話可見。
非常感謝您的幫助。
從此鏈接複製:http://www.componentart.com/community/forums/t/36556.aspx – 2012-01-21 09:58:43