Back to Devexpress

UnboundDataSource.ValuePushed Event

wpf-devexpress-dot-xpf-dot-core-dot-datasources-dot-unbounddatasource-276516d3.md

latest3.9 KB
Original Source

UnboundDataSource.ValuePushed Event

Occurs before a modified value is pushed to the data source.

Namespace : DevExpress.Xpf.Core.DataSources

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public event EventHandler<UnboundSourceValuePushedEventArgs> ValuePushed
vb
Public Event ValuePushed As EventHandler(Of UnboundSourceValuePushedEventArgs)

Event Data

The ValuePushed event's data class is UnboundSourceValuePushedEventArgs. The following properties provide information specific to this event:

PropertyDescription
PropertyNameGets the name of the property whose value is being set.
RowIndexGets the row index of the value.
TagGets an object that contains data associated with the value.
ValueSpecifies the value which is being set.

Remarks

Handle the ValuePushed event to save a modified value to the data source.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ValuePushed event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

use-unbounddatasource-to-populate-wpf-data-grid-with-data/CS/UnboundSource/MainWindow.xaml#L21

xml
ValueNeeded="UnboundDataSource_ValueNeeded"
                  ValuePushed="UnboundDataSource_ValuePushed">
<dx:UnboundDataSource.Properties>

use-unbounddatasource-to-populate-wpf-data-grid-with-data/CS/UnboundSource/obj/Debug/net8.0-windows/MainWindow.g.cs#L103

csharp
#line 21 "..\..\..\MainWindow.xaml"
this.unboundDataSource1.ValuePushed += new System.EventHandler<DevExpress.Data.UnboundSourceValuePushedEventArgs>(this.UnboundDataSource_ValuePushed);

use-unbounddatasource-to-populate-wpf-data-grid-with-data/VB/UnboundSource/obj.NetFX/Debug/MainWindow.g.vb#L101

vb
#ExternalSource("..\..\MainWindow.xaml",21)
AddHandler Me.unboundDataSource1.ValuePushed, New System.EventHandler(Of DevExpress.Data.UnboundSourceValuePushedEventArgs)(AddressOf Me.UnboundDataSource_ValuePushed)

See Also

UnboundDataSource Class

UnboundDataSource Members

DevExpress.Xpf.Core.DataSources Namespace