Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
135
Excel Export creates excel file with 0 rows
posted

I have an excel export running on a grid with 4 columns, 3 bound and one templated.  This grid has a custom filtering panel that allows the datasource for the grid to be filtered and sorted before being bound to the grid.  When a column is sorted or filtered, the excel export function creates an excel file with no data in it - not even the headers.  I can't think of anything to attibute to this result.

 Does anyone have some insight to provide me with?

Here is the code I am using to export the grid:



            myGrid.Columns.FromKey("Action").Hidden = True
            myGridEE.DownloadName = "Favorites"
            myGridEE.Export(Me.myGrid)
            myGrid.Columns.FromKey("Action").Hidden = False