System.Windows.Forms.DataGridViewCellStyle.WrapMode Property

Gets or sets a value indicating whether textual content in a System.Windows.Forms.DataGridView cell is wrapped to subsequent lines or truncated when it is too long to fit on a single line.

Syntax

[System.ComponentModel.DefaultValue(System.Windows.Forms.DataGridViewTriState.NotSet)]
public DataGridViewTriState WrapMode { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

If DataGridViewCellStyle.WrapMode is DataGridViewTriState.False for a cell that contains text, the cell displays the text on a single line, and displays any embedded newline characters as box characters. If DataGridViewCellStyle.WrapMode is DataGridViewTriState.True for a cell that contains text, the cell displays newline characters as line breaks, but also wraps any lines that exceed the width of the cell.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0