Skip to main content

GridTextColumnBase.NullText Property

Gets or sets the text displayed in the cell when the cell’s value is null. This is a dependency property.

Namespace: DevExpress.WinUI.Grid

Assembly: DevExpress.WinUI.Grid.v23.2.dll

NuGet Package: DevExpress.WinUI

Declaration

[DP("", Handler = "OnNullTextChanged")]
public string NullText { get; set; }

Property Value

Type Description
String

The string displayed in the cell when the cell’s value is null.

Remarks

WinUI Grid - Text Column Null Cell

<dxg:GridControl ItemsSource="{x:Bind ViewModel.Source}" AutoGenerateColumns="False" NavigationStyle="Cell">
    <dxg:GridControl.Columns>
        <dxg:GridTextColumn FieldName="ProductName" NullText="Product Name" NullTextForeground="LightBlue"/>
        <!-- ... -->
    </dxg:GridControl.Columns>
</dxg:GridControl>
See Also