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

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.2.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:

xml
<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