corelibraries-devexpress-dot-data-dot-plinq-dot-plinqinstantfeedbacksource.md
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
public event EventHandler<GetEnumerableEventArgs> GetEnumerable
Public Event GetEnumerable As EventHandler(Of GetEnumerableEventArgs)
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. |
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;
}
}
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