ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1DisplayColumn.Visible Property

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

[Visual Basic]

Public Property Visible As Boolean

[C#]

public bool Visible {get;set;}

[Delphi]

public property Visible: Boolean read get_Visible write set_Visible;

Remarks

If True, then the column has not been hidden in code or by the user.

If False, then the column is hidden and cannot be scrolled into view.

For columns created at design time, the default value of this property is True. For columns created in code at run time, the default value of this property is False.

Note: If a column has been scrolled out of view, its Visible property remains True.

Example

To hide a column, set the Visible property to False. The following code hides the second column in the first split:

·      Visual Basic

       Me.C1TrueDBGrid1.Splits(0).DisplayColumns(1).Visible = False

·      C#

       this.c1TrueDBGrid1.Splits[0].DisplayColumns[1].Visible = false;

·      Delphi

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

See Also

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


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