Skip to content

Formatting cells in excel when exporting data to excel

Santhosh Kumar Nallavelli

Santhosh Kumar Nallavelli

Asked Aug 11, 2012, 6:24 AM EDT1 answer
Share
LinkedInX
Hi All ,

I am exporting data from xml to excel sheet using datasets in c#.
While exporting i want to add colours to some cells and also to merge cells.
Please suggest me.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Hello,

     create runtime gridview assign the datatable to gridview as its source and bind it , and generate its rowdatabound event and give all the formating u want and then export the gridview to excel its will work fine...
    0