I have an app where InitializeRow colors the BackgroundColor of each row according to a hierarchy:
![](/community/resized-image/__size/320x240/__key/communityserver-discussions-components-files/1040/pastedimage1668971980591v1.png)
But I want those colors to be omitted when I export to Excel. I tried using if (!r.Band.Layout.IsExportLayout) on the lines of code in the grid's InitializeRow…