I have a template column. I dont want to export it.
I tried to do
1. Make the column visible=false before export
grd.Columns[0].Visible = false;
2. Add attribute.add to cell and make it visible = false.
3. Remove the cell
I tried to do
1. Make the column visible=false before export
grd.Columns[0].Visible = false;
grd.MasterTableView.ExportToExcel();
grd.Columns[0].Visible =
true;
2. Add attribute.add to cell and make it visible = false.
e.Row.Cells[0].Attributes.Add(
"visible", "false");
3. Remove the cell
e.Row.Cells.RemoveAt(0);
However i was unsucessfull .. can you pls suggest a wasy so that the column is not exported and there is no blank column in the export
grd.ExportSettings.IgnorePaging =
true;
grd.ExportSettings.OpenInNewWindow =
true;
grd.ExportSettings.Excel.Format = Telerik.Web.UI.
GridExcelExportFormat.Html;
grd.ExportSettings.ExportOnlyData =
true;