Gets or sets a value indicating whether column resizing is allowed.
[Visual Basic]
Public Property AllowSizing As Boolean
[C#]
public bool AllowSizing {get;set;}
[Delphi]
public property AllowSizing: Boolean read get_AllowSizing write set_AllowSizing;
Remarks
If True, the user can resize the column or split.
If False, the user cannot resize the column or split.
For columns, AllowSizing defaults to True.
If AllowSizing is True for a column, the mouse pointer turns into a double-headed arrow when positioned over that column's divider within the column heading area, and the user can resize the column by dragging. Any change in column size causes a C1TrueDBGrid.ColResize event.
Example
The following code uses the AllowSizing property to prevent the user from resizing the column:
Me.C1TrueDBGrid1.Splits(0).DisplayColumns("CustomerID").AllowSizing = False
· C#
this.c1TrueDBGrid1.Splits[0].DisplayColumns["CustomerID"].AllowSizing = false;
· Delphi
Self.C1TrueDBGrid1.Splits[0].DisplayColumns['CustomerID'].AllowSizing := False;
See Also
C1DisplayColumn Class | C1DisplayColumn Members | C1.Win.C1TrueDBGrid Namespace
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |