Skip to main content
A newer version of this page is available. .

PLinqInstantFeedbackSource.GetEnumerable Event

Occurs when the PLinqInstantFeedbackSource needs an enumerable source, to retrieve data from it.

Namespace: DevExpress.Data.PLinq

Assembly: DevExpress.Data.v18.2.dll

Declaration

public event EventHandler<GetEnumerableEventArgs> GetEnumerable

Event Data

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

Property Description
Source Gets or sets the enumerable data source.
Tag Gets or sets an arbitrary object associated with an enumerable source.

Remarks

Handle this event, to supply an enumerable source to the PLinqInstantFeedbackSource. The GetEnumerableEventArgs class exposes the GetEnumerableEventArgs.Tag property, which you can use to specify an arbitrary object. This object will be passed along with the GetEnumerableEventArgs.Source property to the PLinqInstantFeedbackSource.DismissEnumerable event handler.


public partial class Form1 : Form {
    private void Form1_Load(object sender, EventArgs e) {
        plinqInstantFeedbackSource1.GetEnumerable += plinqInstantFeedbackSource1_GetEnumerable;
        gridControl1.DataSource = plinqInstantFeedbackSource1;
    }
    void plinqInstantFeedbackSource1_GetEnumerable(object sender, GetEnumerableEventArgs e) {
        // IEnumerable<Customer> myCustomerCollection = ...
        e.Source = myCustomerCollection;
    }
}

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetEnumerable 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.

See Also