ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

Split.SpringMode Property

Gets or sets a value that determines how columns will resize when the grid is resized.

[Visual Basic]

Public Property SpringMode As Boolean

[C#]

public bool SpringMode {get;set;}

[Delphi]

public property SpringMode: Boolean read get_SpringMode write set_SpringMode;

Remarks

When this property is set to True and the grid is horizontally resized, the column widths for visible columns will expand and/or shrink proportionally.

When set to False (the default), column widths do not change as the grid is horizontally resized.

Note: Control the minimum width on a per column basis by using the C1DisplayColumn.MinWidth property of individual C1DataColumn objects.

Example

The following code sets the SpringMode property to True, so column widths for visible columns are resized proportionally as the grid is resized:

·      Visual Basic

       Me.C1TrueDBGrid1.Splits(0).SpringMode = True

·      C#

       this.c1TrueDBGrid1.Splits[0].SpringMode = true;

·      Delphi

       Self.C1TrueDBGrid1.Splits[0].SpringMode := True;

See Also

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


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