Back to Devexpress

RepositoryItemLookUpEdit.ShowHeader Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemlookupedit-4d4df4bb.md

latest4.5 KB
Original Source

RepositoryItemLookUpEdit.ShowHeader Property

Gets or sets the visibility of column headers.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(true)]
[DXCategory("Behavior")]
public virtual bool ShowHeader { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue(True)>
Public Overridable Property ShowHeader As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if column headers are visible; otherwise, false.

|

Remarks

The ShowHeader property determines the visibility of the column header panel. The panel displays column captions specified by the LookUpColumnInfo.Caption properties. If an incremental search is being performed, a search glyph (binoculars) is displayed in the appropriate column header. The incremental search is available when the RepositoryItemLookUpEdit.SearchMode property is set to SearchMode.AutoComplete or SearchMode.OnlyInPopup. The incremental search column is identified by the RepositoryItemLookUpEdit.AutoSearchColumnIndex property. The end-user can click on a column header and thus select another column for the search.

See the RepositoryItemLookUpEditBase.ShowFooter property to specify the visibility of the footer region.

The images below show lookup editors when the header panel is visible and hidden.

ShowHeader valueImage
true
false

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowHeader property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-scheduler-sync-google-event-colors-with-labels/CS/SchedulerGSync/SchedulerGSync/SyncOptionsForm.cs#L18

csharp
this.lookUpEdit1.Properties.NullText = String.Empty;
    this.lookUpEdit1.Properties.ShowHeader = false;
}

winforms-scheduler-sync-google-event-colors-with-labels/VB/SchedulerGSync/SchedulerGSync/SyncOptionsForm.vb#L21

vb
Me.lookUpEdit1.Properties.NullText = String.Empty
    Me.lookUpEdit1.Properties.ShowHeader = False
End Sub

See Also

Caption

SearchMode

ShowFooter

RepositoryItemLookUpEdit Class

RepositoryItemLookUpEdit Members

DevExpress.XtraEditors.Repository Namespace