Xceed DataGrid for WPF v7.3 Documentation
Xceed.Wpf.DataGrid Assembly / Xceed.Wpf.DataGrid Namespace / EntityDetailDescription Class / QueryDetails Event


In This Topic
    QueryDetails Event
    In This Topic
    Raised to (optionally) provided details for a data item.
    Syntax
    'Declaration
     
    Public Event QueryDetails As EventHandler(Of QueryEntityDetailsEventArgs)
    'Usage
     
    Dim instance As EntityDetailDescription
    Dim handler As EventHandler(Of QueryEntityDetailsEventArgs)
     
    AddHandler instance.QueryDetails, handler
    public event EventHandler<QueryEntityDetailsEventArgs> QueryDetails
    Event Data

    The event handler receives an argument of type QueryEntityDetailsEventArgs containing data related to this event. The following QueryEntityDetailsEventArgs properties provide information specific to this event.

    PropertyDescription
    Gets or sets a value indicating if the event was handled.  
    Gets the parent item for which details are to be retrieved.  
    Remarks
    By default the Entity Framework does not load references to related entity objects. In this situation, the QueryDetails event exposed by the EntityDetailDescription class can be handled to provide details for a data item. For example, in the code snippet below, a query that will return the appropriate details for a parent item is executed and the Handled property set to true to indicate that the event was handled. In the case where the event is not handled and columns contain references to external Entity objects, the column would have remained empty unless those objects had been cached when loaded by some other means.
    Requirements

    Target Platforms: Windows 11, Windows, 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also