Skip to content

Infragistics Community Forum / Web / Ultimate UI for ASP.NET Web Forms / Changing the header’s text to bold when exporting to excel.

Changing the header’s text to bold when exporting to excel.

New Discussion
[Infragistics] Duane Hoyt
[Infragistics] Duane Hoyt asked on Jul 7, 2011 2:00 PM

Changing the header’s text to bold when exporting to excel.

Sign In to post a reply

Replies

  • 0
    [Infragistics] Duane Hoyt
    [Infragistics] Duane Hoyt answered on Jul 7, 2011 2:00 PM

    You can handle the RowExporting event. Within RowExporting event handler you can write the following:

    if (e.IsHeaderRow){            
           e.WorksheetRow.CellFormat.Font.Bold = Infragistics.Excel.ExcelDefaultableBoolean.True;
    }

     

    This will check whether the row is a header by calling IsHeaderRow property and set Bold property of the cell format’s font to true.

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
[Infragistics] Duane Hoyt
Favorites
0
Replies
1
Created On
Jul 07, 2011
Last Post
14 years, 7 months ago

Suggested Discussions

Created on

Jul 7, 2011 2:00 PM

Last activity on

Feb 22, 2026 8:50 PM