I am displaying certain records in a DataGrid whose number of field display changes depending upon the fields the user want to select.

I want to EXPORT this whole DataGrid to MS Excel as it is. How to do so?

Since the number of field display changes, I cannot reserve the number of cells in Excel. So I want to transfer the Grid itself.