ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

Example 8 - Changing Only the Data Cells in 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:

·      Visual Basic

Me.C1TrueDBGrid1.Splits(0).DisplayColumns(0).Style.BackColor = System.Drawing.Color.Lavender

·      C#

this.C1TrueDBGrid1.Splits[0].DisplayColumnsp[0].Style.BackColor = System.Drawing.Color.Lavender;

·      Delphi

Self.C1TrueDBGrid1.Splits[0].DisplayColumns[0].Style.BackColor := System.Drawing.Color.Lavender;

 


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.