Export Dynamicly added rows into excel
Problem : I have tried Exporting GridView to Excel but observed that the Dynamically added Row to Gridview is not exported to excel.
Answer :
Actually when you click on export to excel button its postback methos will destroy your dynamic data.
I think in every post back your not binding the dynamically added rows. Try to find the control which cause the postback and bind the data once again.
Or
Call once again that method which is adding dynamic rows.
Example:

No comments:
Post a Comment