DataGridViewCellStyle.IsDataSourceNullValueDefault 属性

定义

获取指示是否已设置 DataSourceNullValue 属性的值。Gets a value indicating whether the DataSourceNullValue property has been set.

public:
 property bool IsDataSourceNullValueDefault { bool get(); };
[System.ComponentModel.Browsable(false)]
public bool IsDataSourceNullValueDefault { get; }
member this.IsDataSourceNullValueDefault : bool
Public ReadOnly Property IsDataSourceNullValueDefault As Boolean

属性值

如果 true 属性的值是默认值,则为 DataSourceNullValue;否则为 falsetrue if the value of the DataSourceNullValue property is the default value; otherwise, false.

属性

注解

使用此属性来确定是否已显式设置 DataSourceNullValue 属性,而无需存储其默认值进行比较。Use this property to determine whether the DataSourceNullValue property has been explicitly set without having to store its default value for comparison. 这非常有用,因为 DataSourceNullValue 属性具有非空的默认值,这不同于大多数其他 DataGridViewCellStyle 属性,这些属性具有默认值,如 nullEmptyNotSetThis is useful because the DataSourceNullValue property has a non-empty default value, unlike most other DataGridViewCellStyle properties, which have default values such as null, Empty, or NotSet.

适用于

另请参阅