The Gridview to Excel Export Tool 2.0 - VB Demo Site

From SqlDataSource to Excel while moving columns

Welcome 10/09/2010

Export from sqldatasource moving columns


This demo shows how you can export data from a sqldatasource and change the position of a column in the exported Excel sheet.


Move column from position:    to position: 

Set start and end position to the same value to see original layout.


Postback events code for xml and xlsx Excel Exports:

The VB code to run the export to xml/xlsx Excel formats changing some columns positions:

Ing Ettore CefalĂ  - via Conca del Naviglio,5 - 20123 - Milano - P.IVA: 07902170153