Back to Devexpress

TreeListView.UpdateRowButtonsTemplate Property

wpf-devexpress-dot-xpf-dot-grid-dot-treelistview-eaf1b262.md

latest2.6 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public DataTemplate UpdateRowButtonsTemplate { get; set; }
vb
Public Property UpdateRowButtonsTemplate As DataTemplate

Property Value

TypeDescription
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.

This code sample displays the customization example:

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

TreeListView Class

TreeListView Members

DevExpress.Xpf.Grid Namespace