I have a DataGridview I would like to export to excel. I know how to do it with for next...
my problem is the column order in the excel needs to be a little bit different.
lets say Columns in the dataGrid are :
TotalCredit 01Credit 02Credit 03Credit Code Desc Total Debit
I would like in excel the order to be:
Code Desc TotalCredit Total Debit 01Credit 02Credit 03Credit
How can I achieve this with code example ?