Below is my code:
var grid = new GridView();
grid.DataSource = myDataset;
grid.DataBind();
I want to format some of the columns of my grid to Currency with thousand separator and with decimal like '$9,999,999.99'.
I am exporting the grid to excel and I want to see the values in currency format.
I am creating gridview during runtime. I have no html code for my gridview.
I am just bounding dataset to gridview and exporting to excel. I won't see gridview in HTML format.
How to do that?