Back to Devexpress

LookUpEdit.GetGridControl() Method

wpf-devexpress-dot-xpf-dot-grid-dot-lookup-dot-lookupedit.md

latest1.6 KB
Original Source

LookUpEdit.GetGridControl() Method

Returns an embedded GridControl.

Namespace : DevExpress.Xpf.Grid.LookUp

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public GridControl GetGridControl()
vb
Public Function GetGridControl As GridControl

Returns

TypeDescription
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

LookUpEdit Class

LookUpEdit Members

DevExpress.Xpf.Grid.LookUp Namespace