hi;
i send my gridview to excel thats fine but i add two textboxes and buttons on my page
that user can pick date then fill the gridview again.
i have a link button on my page "send excel" now there is a problem when i send the gridview to excel my buttons and text boxes go too.
how can i get rid of that. and header & columns are too big or too little but the important part is getting rid of buttons and textboxes , thanks
here my code;
public override void VerifyRenderingInServerForm(Control control)
{
if (control.ID != "grdRapor")
{
base.VerifyRenderingInServerForm(control);
}
}
protected void btnGonder_Click(object sender, EventArgs e)
{
grdRapor.GridLines = GridLines.Both;
StringWriter stringYaz = new StringWriter();
HtmlTextWriter htw = new HtmlTextWriter(stringYaz);
grdRapor.RenderControl(htw);
Response.Clear();
Response.AddH ...
Go to the complete details ...