ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.ColumnHeaders Property

Gets or sets a value indicating the visibility of column headers.

[Visual Basic]

Public Property ColumnHeaders As Boolean

[C#]

public bool ColumnHeaders {get;set;}

[Delphi]

public property ColumnHeaders: Boolean read get_ColumnHeaders write set_ColumnHeaders;

Remarks

If True (the default), the control's column headers are displayed.

If False, the control's column headers are not displayed.

Use the C1DataColumn.Caption property to set the heading text of an individual column.

Example

The following code does not display the column headers:

·      Visual Basic

       Me.C1TrueDBGrid1.ColumnHeaders = False

·      C#

       this.c1TrueDBGrid1.ColumnHeaders = false;

·      Delphi

       Self.C1TrueDBGrid1.ColumnHeaders := False;

See Also

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


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