New to Telerik UI for WinForms? Download free 30-day trial

Custom Display Names

The names behind each of the descriptor items are extracted from the data-bound object. RadDataFilter exposes the PropertyDisplayNameNeeded event providing means for customizing the displayed name of a field.

Figure 1: Custom Display Names

WinForms RadDataFilter Custom Display Names

PropertyDisplayNameNeeded Event

private void RadDataFilter1_PropertyDisplayNameNeeded(object sender, PropertyDisplayNameNeededEventArgs e)
{
    if (e.FieldName == "BirthDay")
    {
        e.DisplayName = "Birth Day";
    }
}

Private Sub RadDataFilter1_PropertyDisplayNameNeeded(sender As Object, e As PropertyDisplayNameNeededEventArgs)
    If e.FieldName = "Birth Day" Then
        e.DisplayName = "Birth Day"
    End If
End Sub

See Also

In this article