New to Telerik UI for ASP.NET MVC? Download free 30-day trial

Color Alternating Rows

The demo on how to color the alternating rows of an exported Grid to Excel uses the background option of the cell to set the background color of the alternating rows.

To see the example, refer to the project on coloring alternating rows.

These projects require a UI for ASP.NET MVC 2014.3.1125 version or later. Earlier versions do not expose the ExcelExport event through the fluent API.

For more information on how Excel documents work, refer to the introductory article on Excel.

See Also

In this article