Skip to main content

LookUpEdit.GetGridControl() Method

Returns an embedded GridControl.

Namespace: DevExpress.Xpf.Grid.LookUp

Assembly: DevExpress.Xpf.Grid.v24.1.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