title: ComponentArt: Exporting the Grid Data
body: <p>I have a need to export the contents in a ComponentArt Grid into a file, preferably excel in csv format. </p>
  
  <p>I was wondering if anyone had any ideas how to best approach this task. At the moment we have the grid being populated with data, and using client templating some minor manipulation is being performed before it is displayed to the user.</p>
  
  <p>An example of a template that is applied is:</p>
  
  <pre><code>&lt;ComponentArt:ClientTemplate Id="PostTemplate"&gt;
     ## DataItem.GetMember("LastPostBy").Value ##&lt;br /&gt;## DataItem.GetMember("LastPostDate").Value ##
  &lt;/ComponentArt:ClientTemplate&gt;
  
  Where the column definitions are:
  
  &lt;ComponentArt:GridColumn Width="140" HeadingText="Last Post By " DataCellClientTemplateId="PostTemplate" /&gt;
  &lt;ComponentArt:GridColumn DataField="LastPostBy" Visible="false" /&gt;
  &lt;ComponentArt:GridColumn DataField="LastPostDate" Visible="false" /&gt;
  </code></pre>
  
  <p>So when the grid is exported I would like the file to contain what is in the grid at the moment of export including any templated changes that may be visible if possible.</p>
  
  <p>Thank you in advance for your assistance.</p>