How To Show The Watermark Text In Gridnumericcolumn Of WPF Datagrid?

Sample date Updated on Jan 16, 2026
columns datagrid gridnumericcolumn watermark wpf wpf-datagrid

This sample show cases how to show the watermark text in the WPF DataGrid (SfDataGrid).

You can show the PlaceHolderText for GridNumericColumn by loading the SfNumericTextBox as GridNumeriColumn.CellTemplate in DataGrid.

<syncfusion:SfDataGrid x:Name="dataGrid"
                    AllowEditing="True"
                    AllowFiltering="True"
                    AllowGrouping="True"
                    AllowDeleting="True"
                    AllowSorting="True" 
                    ColumnSizer="Star"
                    AutoGenerateColumns="False"
                    ItemsSource="{Binding Emp}"
                    ShowGroupDropArea="True">

    <syncfusion:SfDataGrid.Columns>
            <syncfusion:GridNumericColumn.CellTemplate>
                <DataTemplate>
                    <input:SfNumericTextBox Value="{Binding Salary,Mode=TwoWay}" PlaceholderText="Type Here" AllowNull="True"/>
                </DataTemplate>
            </syncfusion:GridNumericColumn.CellTemplate>
        </syncfusion:GridNumericColumn>
        <syncfusion:GridTextColumn MappingName="SickLeaveHours"/>
    </syncfusion:SfDataGrid.Columns>

</syncfusion:SfDataGrid>
Up arrow