← Back to all blogs

Posts tagged with 'applycellstyles'

WPF FlexGrid Style Skills Part 3: Setting the Selected Cell Color and Font

In our last article, we discussed changing the styling a FlexGrid's cell font using the CellFactory. Here, we'll further examine styling a selected cell using the CreateCellContentMethod.

WPF FlexGrid Style Skills Part 2: Cell Foreground Color and Cell Font Settings

In our last article, we discussed changing the background color settings for the cell by rewriting the ApplyCellStyles method, and setting the Border's Background property. This article covers another aspect of styling: how to set the cell font.

WPF FlexGrid Style Skills Part 1: Setting Cell Background Colors

One of the most asked questions for the FlexGrid is how to set the style of the cell (including the foreground color and background color). Normally, we implement the style settings through the FlexGrid's CellFactory by overriding the ApplyCellStyles method. This article introduces you to using the FlexGrid’s CellFactory and provides an example of how to set a specific cell style using FlexGrid.