ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.ViewCaptionWidth Property

Gets or sets the width of the column caption when the DataView is set to Inverted or Form.

[Visual Basic]

Public Property ViewCaptionWidth As Integer

[C#]

public int ViewCaptionWidth {get;set;}

[Delphi]

public property ViewCaptionWidth: Int32 read get_ViewCaptionWidth write set_ViewCaptionWidth;

Example

The following code sets the width of the column caption in a grid to 100. Note this property is applicable only if the DataView property is set to DataViewEnum.Form or DataViewEnum.Inverted:

·      Visual Basic

       Me.C1TrueDBGrid1.DataView = DataViewEnum.Inverted

       Me.C1TrueDBGrid1.ViewCaptionWidth = 100

·      C#

       this.c1TrueDBGrid1.DataView = DataViewEnum.Inverted;

       this.c1TrueDBGrid1.ViewCaptionWidth = 100;

·      Delphi

       Self.C1TrueDBGrid1.DataView := DataViewEnum.Inverted;

       Self.C1TrueDBGrid1.ViewCaptionWidth := 100;

See Also

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


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