Skip to main content
All docs
V25.1
  • DataSourceFillErrorEventArgs.Handled Property

    Gets or sets whether the FillError event has been handled.

    Namespace: DevExpress.DataAccess

    Assembly: DevExpress.DataAccess.v25.1.dll

    NuGet Package: DevExpress.DataAccess

    Declaration

    public bool Handled { get; set; }

    Property Value

    Type Description
    Boolean

    true, if the FillError event has been handled; otherwise, false.

    Remarks

    Set this property to true to specify that the FillError exception has been handled.

    Example

    The code sample below creates a new data source, handles the FillError event to to process exceptions, and tries to populate the data source with data.

    using DevExpress.DataAccess;
    using DevExpress.DataAccess.Json;
    // ...
    // Create a new JSON source.
    var jsonSource = new UriJsonSource() {
        Uri = new Uri(@"https://invalid.json")
    };
    // Assign the JSON source to the data source.
    var datasource = new JsonDataSource() {
        JsonSource = jsonSource
    };
    datasource.FillError += (s, e) => {
        e.Handled = true;
        // Add code that handles the data source fill error here.
    };
    
    See Also