Back to Devexpress

PLinqInstantFeedbackSource.GetEnumerable Event

corelibraries-devexpress-dot-data-dot-plinq-dot-plinqinstantfeedbacksource.md

latest3.4 KB
Original Source

PLinqInstantFeedbackSource.GetEnumerable Event

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

Namespace : DevExpress.Data.PLinq

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
public event EventHandler<GetEnumerableEventArgs> GetEnumerable
vb
Public Event GetEnumerable As EventHandler(Of GetEnumerableEventArgs)

Event Data

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

PropertyDescription
SourceGets or sets the enumerable data source.
TagGets 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.

csharp
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;
    }
}
vb
Partial Public Class Form1
    Inherits Form
    Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
        AddHandler plinqInstantFeedbackSource1.GetEnumerable, AddressOf plinqInstantFeedbackSource1_GetEnumerable
        gridControl1.DataSource = plinqInstantFeedbackSource1
    End Sub
    Private Sub plinqInstantFeedbackSource1_GetEnumerable(ByVal sender As Object, ByVal e As GetEnumerableEventArgs)
        ' IEnumerable<Customer> myCustomerCollection = ...
        e.Source = myCustomerCollection
    End Sub
End Class

See Also

PLinqInstantFeedbackSource Class

PLinqInstantFeedbackSource Members

DevExpress.Data.PLinq Namespace