DataGridView.ShowCellErrors DataGridView.ShowCellErrors DataGridView.ShowCellErrors DataGridView.ShowCellErrors Property

定义

获取或设置一个值,该值指示是否显示单元格错误。Gets or sets a value indicating whether to show cell errors.

public:
 property bool ShowCellErrors { bool get(); void set(bool value); };
public bool ShowCellErrors { get; set; }
member this.ShowCellErrors : bool with get, set
Public Property ShowCellErrors As Boolean

属性值

如果将在未通过验证的单元格中显示红色标志符号,为true ;否则为 falsetrue if a red glyph will appear in a cell that fails validation; otherwise, false. 默认值为 trueThe default is true.

适用于

另请参阅