Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hi,
I am having two datasets in which first dataset has 6 rows and second dataset has 'N' Number of rows , second dataset row count keeps on changing , What I need is I need to export both the dataset to a single excelsheet . Both dataset has headers , So i need to export both dataset with header to a single excelsheet using c#. Can Anyone help me with sample code in c#
Posted
Updated 13-Feb-14 18:02pm
v2

Hi,

1. Use A Div Tag.(Visible False)
2. Inside that you Place Gridviews According to your Dataset Count.
3. Bind Grid View and Use Gridview Caption for Headers.
4. Now Export Div to Excel. it will work.
 
Share this answer
 
v2
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900