LookUpEdit.GetGridControl() Method

Returns an embedded GridControl.

Namespace: DevExpress.Xpf.Grid.LookUp

Assembly: DevExpress.Xpf.Grid.v20.1.dll

Declaration

public GridControl GetGridControl()
Public Function GetGridControl As GridControl

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