Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PropertyDefinitionBase.RowTemplate Property

Gets or sets a template that defines the presentation of rows displayed within the property grid. This is a dependency property.

Namespace: DevExpress.Xpf.PropertyGrid

Assembly: DevExpress.Xpf.PropertyGrid.v24.2.dll

NuGet Package: DevExpress.Wpf.PropertyGrid

#Declaration

public ControlTemplate RowTemplate { get; set; }

#Property Value

Type Description
ControlTemplate

A ControlTemplate object that represents the template which defines the presentation of rows displayed within the property grid.

#Remarks

Use the RowTemplate property to define the presentation of property grid rows.

The following example demonstrates a property grid row that displays a button.

<dxprg:PropertyGridControl SelectedObject="{Binding}">
    <dxprg:PropertyDefinition Path="Name"/>
    <dxprg:PropertyDefinition Path="Email">
        <dxprg:PropertyDefinition.RowTemplate>
            <ControlTemplate>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="60"/>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="{Binding Path=Value}" Grid.Column="0" VerticalAlignment="Center"/>
                    <Button Content="Write" Grid.Column="1"/>
                </Grid>
            </ControlTemplate>
        </dxprg:PropertyDefinition.RowTemplate>
    </dxprg:PropertyDefinition>
</dxprg:PropertyGridControl>

To learn more, see Appearance Customization.

See Also