c# - From gridview to excel export - How can I get excel what I see in the application? -
is a gridview that contains some data.
The header style for that gridview is
& lt; HeaderStyle BackColor = "# 006699" CssClass = "GridViewHeader" font-bold = "true" ForeColor = "white" /> How can I export that gridview to excel? I want to export what I see, colors, filters etc.
When I follow this link
I get an error because it says that there should be form tag in which runat = "server" but when I add it, it Repeat error because the master page already has a form. Copy
and paste this code into your page:
Public override zero validation VerifyRenderingInServerForm (Control Control) Confirms that an HtmlForm control is provided for ASP.NET Server Control for a specified time. * /} This will solve your problem.
Comments
Post a Comment