When I execute the following code:
private void excelButton_Click(object sender, System.EventArgs e)
{
Response.Clear();
Response.ContentType = "application/vnd.ms-excel";
Response.Charset = "";
this.EnableViewState = false;
System.IO.StringWriter tw = new
System.IO.StringWriter(System.Globalization.Cultur eInfo.CurrentCulture);
System.Web.UI.HtmlTextWriter hw = new System.Web.UI.HtmlTextWriter(tw);
applicationPermissionGrid.RenderControl(hw);
Response.Write(tw.ToString());
Response.End();
}
Only the first three columns of the datagrid are exported to the excel
spreadsheet. Is there a reason the other 2 columns would no be exported as
well?
Thanks,
Dave