wpf-devexpress-dot-xpf-dot-grid-dot-treelistview-eaf1b262.md
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
public DataTemplate UpdateRowButtonsTemplate { get; set; }
Public Property UpdateRowButtonsTemplate As DataTemplate
| Type | Description |
|---|---|
| DataTemplate |
A template that specifies the appearance of the buttons which allow you to update rows.
|
The UpdateRowButtonsTemplate specifies the appearance of the Update and Cancel buttons.
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