I have searched the net high and low for the solution to no avail. I am exporting GridView to Excel - that I have accomplished. One of my columns contains information with leading 0s. Excel is truncating them and I can't figure out how to apply a style sheet to keep it from happening. I am using a code-behind class for portability - I have to invoke this in several areas with only the Queries changing. - hence why I can't hard code a query in :X
NOTE:
GridView ID = GridView1
Query source: SqlDataSource1
I'm developing with a code-behind class named as: 'exportToExcel.cs' -- the code
using
///
public
{
tbl.Rows.Add(gridView.HeaderRow);
}
tbl.Rows.Add(rowX);
tbl.RenderControl(htmlTW);
ctrl.Controls.Remove(current);
ctrl.Controls.AddAt(i,
The front end: [Default.aspx.cs]
Any Suggestions on how to apply the StyleSheet correctly or get the gridView_RowDataBound to fire?