ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1DisplayColumn.HeaderDivider Property

Gets or sets a value indicating whether to display the column divider in the header area.

[Visual Basic]

Public Property HeaderDivider As Boolean

[C#]

public bool HeaderDivider {get;set;}

[Delphi]

public property HeaderDivider: Boolean read get_HeaderDivider write set_HeaderDivider;

Remarks

If True (the default), the right edge of the column's header is drawn with a vertical dividing line.

If False, no dividing line is drawn in the column's header area.

Note: Setting this property to False does not prevent the user from resizing the column. Set the AllowSizing property to False to disable column resizing.

Example

The following code uses the HeaderDivider property to exclude the dividing line in the column's footer, which enables you to visually group related columns:

·      Visual Basic

       Me.C1TrueDBGrid1.Columns(0).Caption = "Composers"

       Me.C1TrueDBGrid1.Splits(0).DisplayColumns(0).HeaderDivider = False

·      C#

       this.c1TrueDBGrid1.Columns[0].Caption = "Composers";

       this.c1TrueDBGrid1.Splits[0].DisplayColumns[0].HeaderDivider = false;

·      Delphi

       Self.C1TrueDBGrid1.Columns[0].Caption := 'Composers';

       Self.C1TrueDBGrid1.Splits[0].DisplayColumns[0].HeaderDivider := False;

See Also

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


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