corelibraries-devexpress-dot-dataaccess-dot-objectbinding-dot-objectdatasource-f9befdcc.md
Occurs before filling an object data source, enabling you to provide custom validation for all object data sources in your application.
Namespace : DevExpress.DataAccess.ObjectBinding
Assembly : DevExpress.DataAccess.v25.2.dll
NuGet Package : DevExpress.DataAccess
public static event BeforeFillEventHandler BeforeFillGlobal
Public Shared Event BeforeFillGlobal As BeforeFillEventHandler
The BeforeFillGlobal event's data class is BeforeFillEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| ConstructorInfo | Returns an object providing access to constructor parameters of an ObjectDataSource. |
| DataMember | Returns the data member specified for an ObjectDataSource. |
| DataSource | Returns the data source assigned to an ObjectDataSource. |
| IsValid | Specifies whether or not the object data source is valid. |
| Parameters | Returns a collection of method and constructor parameters of an ObjectDataSource. |
The BeforeFillGlobal event occurs before filling an object data source.
If the BeforeFillEventArgs.IsValid property returns false , a ValidationFailedException is thrown.
Important
BeforeFillEventArgs.IsValid is false if the object data source uses an untrusted data source type.
To validate a specific object data source, handle the ObjectDataSource.BeforeFill event.
See Also