| How to Use Styles > Working with Style Properties > Anonymous Style Inheritance > Example 8 - Changing the Data Cells in Only the First Column of the First Split |
In this example, only the data cells of the first column of the first split are affected. This is because the column headers and column footers inherit their background colors from the built-in styles Heading and Footing, respectively.

The following code changes the data cells in only the first column of the first split:
To write code in Visual Basic
| Visual Basic |
Copy Code
|
|---|---|
Me.C1List1.Splits(0).DisplayColumns(0).Style.BackColor = System.Drawing.Color.Teal |
|
To write code in C#
| C# |
Copy Code
|
|---|---|
this.c1List1.Splits[0].DisplayColumns[0].Style.BackColor = System.Drawing.Color.Teal; |
|