ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1DisplayColumn.ColumnDivider Property

Gets or sets the style of the border drawn between columns.

[Visual Basic]

Public Property ColumnDivider As C1.Win.C1TrueDBGrid.Util.GridLines

[C#]

public C1.Win.C1TrueDBGrid.Util.GridLines ColumnDivider {get;set;}

[Delphi]

public property ColumnDivider: C1.Win.C1TrueDBGrid.Util.GridLines read get_ColumnDivider write set_ColumnDivider;

Example

The following code uses the ColumnDivider property to set the style and color of the border drawn between columns:

·      Visual Basic

       Dim C As C1.Win.C1TrueDBGrid.C1DisplayColumn

       For Each C In Me.C1TrueDBGrid1.Splits(0).DisplayColumns

           C.ColumnDivider.Style = C1.Win.C1TrueDBGrid.LineStyleEnum.Inset

           C.ColumnDivider.Color = Color.Black

       Next

·      C#

       foreach (C1.Win.C1TrueDBGrid.C1DisplayColumn C in this.c1TrueDBGrid1.Splits[0].DisplayColumns)

       {

           C.ColumnDivider.Style = C1.Win.C1TrueDBGrid.LineStyleEnum.Inset;

           C.ColumnDivider.Color = Color.Black;

       }

·      Delphi

       var

      C: C1.Win.C1TrueDBGrid.C1DisplayColumn;

       begin

         for C in Self.C1TrueDBGrid1.Splits[0].DisplayColumns do

         begin

           C.ColumnDivider.Style := C1.Win.C1TrueDBGrid.LineStyleEnum.Inset;

           C.ColumnDivider.Color := Color.Black;

         end;

       end;

See Also

C1DisplayColumn Class | C1DisplayColumn Members | C1.Win.C1TrueDBGrid Namespace


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