Skip to main content

PLinqInstantFeedbackSource.GetEnumerable Event

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

Namespace: DevExpress.Data.PLinq

Assembly: DevExpress.Data.v23.2.dll

NuGet Package: DevExpress.Data

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;
    }
}
See Also