Skip to main content

TableView.UpdateRowButtonsTemplate Property

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

Namespace: DevExpress.Xpf.Grid

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

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public DataTemplate UpdateRowButtonsTemplate { get; set; }

Property Value

Type Description
DataTemplate

A template that specifies an 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:TableView x:Name="view" AutoWidth="True" ShowUpdateRowButtons="OnCellEditorOpen">
                <dxg:TableView.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:TableView.UpdateRowButtonsTemplate>
            </dxg:TableView>
        </dxg:GridControl.View>
    </dxg:GridControl>
</DockPanel>

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

See Also