Click or drag to resize
StyleAutoSize Property
Gets or sets the auto size property.

Namespace: Stingray.Grid
Assembly: Stingray.GridControl (in Stingray.GridControl.dll) Version: 14.0.0.0
Syntax
[DefaultValueAttribute(false)]
public bool AutoSize { get; set; }

Property Value

Type: Boolean
true if auto size is enabled, and false otherwize.
Remarks
When auto size is enabled, the edit cell automatically grows while the user enters large text. If you have enabled word break, edit cells grow vertically. If you have disabled word break, edit cells grow horizontally. Rich edit cells grow only vertically and do not depend on word break.

Cells do not grow when filled the cells programmatically. For example, calling SetValueRange with large text does not cause the cell to grow. Call ResizeRowHeightsToFit to resize rows after you fill the cells with SetValueRange.

See Also