Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

LookUpEdit.GetGridControl() Method

Returns an embedded GridControl.

Namespace: DevExpress.Xpf.Grid.LookUp

Assembly: DevExpress.Xpf.Grid.v24.2.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public GridControl GetGridControl()

#Returns

Type Description
GridControl

A GridControl object that represents the data grid embedded in the editor’s drop-down window.

#Remarks

The GetGridControl method returns a null reference until the embedded grid is shown: call the GetGridControl method within the editor’s PopupBaseEdit.PopupOpened event handler.

To manually customize the grid control and embed it within the look-up editor, use the PopupBaseEdit.PopupContentTemplate property.

Note

The embedded grid control’s x:Name attribute must be set to PART_GridControl.

See Also