Skip to main content

TreeListView.UpdateRowButtonsTemplate Property

Gets or sets a template that specifies the appearance of the buttons which allow you to update rows.

Namespace: DevExpress.Xpf.Grid

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

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public DataTemplate UpdateRowButtonsTemplate { get; set; }

Property Value

Type Description
DataTemplate

A template that specifies the appearance of the buttons which allow you to update rows.

Remarks

The UpdateRowButtonsTemplate specifies the appearance of the Update and Cancel buttons.

UpdateRowButtonsTemplate Example

This code sample displays the customization example:

<DockPanel>
<!---->
    <dxg:GridControl x:Name="grid">
        <dxg:GridControl.View>
            <dxg:TreeListView x:Name="view" AutoWidth="True" ShowUpdateRowButtons="OnCellEditorOpen">
                <dxg:TreeListView.UpdateRowButtonsTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                            <Button Margin="0,0,6,0" Content="Change" 
                                    Command="{Binding View.Commands.UpdateRow}"
                                    Background="PaleGreen"/>
                            <Button Content="{dxg:GridControlStringId UpdateRowButtonsCancel}" 
                                    Command="{Binding View.Commands.CancelRowChanges}"
                                    Background="PaleVioletRed"/>
                        </StackPanel>
                    </DataTemplate>
                </dxg:TreeListView.UpdateRowButtonsTemplate>
            </dxg:TreeListView>
        </dxg:GridControl.View>
    </dxg:GridControl>
</DockPanel>

Refer to the following topic for more information: Edit Entire Row.

See Also