Skip to main content
.NET Framework 4.5.2+
  • The page you are viewing does not exist in the .NET 6.0+ platform documentation. This link will take you to the parent topic of the current section.

XpoDataSourceInsertedEventArgs.Value Property

Provides access to the persistent object that has been inserted in the XpoDataSource via a bound data-aware control.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v23.2.dll

NuGet Packages: DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap, DevExpress.Xpo

Declaration

public object Value { get; }

Property Value

Type Description
Object

An XPObject descendant representing the persistent object that has been inserted.

Remarks

The XpoDataSource retrieves objects of the type specified via the XpoDataSource.TypeName property. To access the properties specific to this type, cast the property value to the specified object type.

The following code snippet demonstrates how to handle the XpoDataSource.Inserted event to access the properties of the object that has been inserted. It’s assumed that the XpoDataSource.TypeName property is assigned “Comment” to retrieve Comment persistent objects.

protected void XpoDataSource1_Inserted(object sender, XpoDataSourceInsertedEventArgs e)
{
   Comment comment = e.Value as Comment;
   if(comment != null) {
      int oid = comment.Oid;
      string text = comment.Text;
      // ...
   }
}
See Also