Gets or sets the width of a column when the DataView is set to Inverted or Form.
[Visual Basic]
Public Property ViewColumnWidth As Integer
[C#]
public int ViewColumnWidth {get;set;}
[Delphi]
public property ViewColumnWidth: Int32 read get_ViewColumnWidth write set_ViewColumnWidth;
Example
The following code sets the width of the column in a grid to 50. Note this property is applicable only if the DataView property is set to DataViewEnum.Form or DataViewEnum.Inverted:
Me.C1TrueDBGrid1.DataView = DataViewEnum.Inverted
Me.C1TrueDBGrid1.ViewColumnWidth = 50
· C#
this.c1TrueDBGrid1.DataView = DataViewEnum.Inverted;
this.c1TrueDBGrid1.ViewColumnWidth = 50;
· Delphi
Self.C1TrueDBGrid1.DataView := DataViewEnum.Inverted;
Self.C1TrueDBGrid1.ViewColumnWidth := 50;
See Also
C1TrueDBGrid Class | C1TrueDBGrid Members | C1.Win.C1TrueDBGrid Namespace
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |