Back to Devexpress

PLinqInstantFeedbackSource Class

corelibraries-devexpress-dot-data-dot-plinq-22baf9c2.md

latest3.9 KB
Original Source

PLinqInstantFeedbackSource Class

The data source for the GridControl and SearchLookUpEdit that binds these controls to any enumerable source in Instant Feedback Mode.

Namespace : DevExpress.Data.PLinq

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
[ToolboxBitmap(typeof(ResFinder), "Bitmaps256.PLinqInstantFeedbackSource.bmp")]
public class PLinqInstantFeedbackSource :
    Component,
    IListSource,
    IDXCloneable
vb
<ToolboxBitmap(GetType(ResFinder), "Bitmaps256.PLinqInstantFeedbackSource.bmp")>
Public Class PLinqInstantFeedbackSource
    Inherits Component
    Implements IListSource,
               IDXCloneable

Remarks

Instant Feedback binding mode is an improvement over regular server mode. In server mode, the Grid Control loads data in small portions and delegates all data operations (sorting, grouping, filtering and calculating summaries) to the data server. This is the key to the server mode’s high efficiency when working with large volumes of data. The only drawback to using server mode involves data operations when the connection to the server is slow. In this instance, the bound control freezes until the data server completes operations and retrieves results. With Instant Feedback binding mode, data operations are performed asynchronously in a background thread, and both the bound control and the application remain highly responsive. Currently, this mode is supported by the GridControl and SearchLookUpEdit controls.

For additional information on Instant Feedback mode, refer to the Large Data Sources: Server and Instant Feedback Modes section.

Note

The PLinqInstantFeedbackSource is a read-only data source.

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

Inheritance

Object MarshalByRefObject Component PLinqInstantFeedbackSource

See Also

PLinqInstantFeedbackSource Members

DevExpress.Data.PLinq Namespace