FlexGrid also lets you customize overall look of the grid, not to just increase its aesthetic value but also increases its readability. You can add the alternate rows which make the grid more readable. Also, you can set image, for instance a watermark or a company logo, in background of the grid.
To set the alternate row color and styles in the grid, you can use the built-in style "Alternate" either at design time or at runtime. To apply style at design time, you need to access the FlexGrid Style Editor and set properties for Alternate style.
To apply alternate row style in the WinForms FlexGrid through code, you need to use the CellStyle item "Alternate" of the CellStyleCollection class and set various properties for setting the alternate style.
To set the background image on a grid, you can use the BackgroundImage property and assign the path of the image file to it. Another property called BackgroundImageLayout property lets you choose whether and how to render image on the grid.
Use the code below to set the background image on the WinForms FlexGrid.