we are using Telerik product and Assembly version
Product - 2009.02.0616.35
Assembly 2009.2.616.35
we use the below piece of code for exporting to excel from grid.But in the output, we face a empty row between the header and data rows in excel sheet.we don't want that empty row.
In one of the forums post they said to add this code RadGrid1.MasterTableView.AllowFilteringByColumn = false;
but still we dont have luck on that
void btnExcel_Click(object sender, ImageClickEventArgs e)
{
LRG RadGridToExport = this.Page.FindControl(RadGridIDToExport) as LRG;
if (RadGridToExport == null) return;
if (RadGridToExport.Items.Count > 0)
{
RadGridToExport.ExportSettings.ExportOnlyData =
true;
RadGridToExport.ExportSettings.IgnorePaging = chkAll.Checked;
RadGridToExport.ExportSettings.OpenInNewWindow =
true;
RadGridToExport.MasterTableView.ExportToExcel();
}
}