This is a migrated thread and some comments may be shown as answers.

Biff Excel Export without Footer

2 Answers 110 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 06 Jan 2014, 05:56 PM
How do I used Biff Excel Export but hide/disable the footer row from being exported?

Thank you.

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 07 Jan 2014, 03:59 AM
Hi Nick,

You can set the ShowFooter property to false during the export from the ItemCommand Event as follows:

C#:
protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
{
  if (e.CommandName == RadGrid.ExportToExcelCommandName)
  {
      RadGrid1.ShowFooter = false;
  }
}

Thanks,
Princy
0
Nick
Top achievements
Rank 1
answered on 07 Jan 2014, 01:17 PM
Thanks.  I'm using a centralized class to override so I modified your suggestion as follows and it works as desired. Thank you.

e.Item.OwnerTableView.ShowFooter = False

Tags
Grid
Asked by
Nick
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Nick
Top achievements
Rank 1
Share this question
or