FlexGrid lets you customize the 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.
To set the alternate row color and styles in the grid, you can use the AlternatingRowBackground and AlternatingRowForeground properties.
Use the code below to set styling at grid-level:
C# |
コードのコピー
|
---|---|
// 代替行を設定します flexGrid1.AlternatingRowBackground = new SolidColorBrush(Colors.Aqua); flexGrid1.AlternatingRowForeground = new SolidColorBrush(Colors.LightSalmon); |