windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemlookupedit-4d4df4bb.md
Gets or sets the visibility of column headers.
Namespace : DevExpress.XtraEditors.Repository
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue(true)]
[DXCategory("Behavior")]
public virtual bool ShowHeader { get; set; }
<DXCategory("Behavior")>
<DefaultValue(True)>
Public Overridable Property ShowHeader As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true if column headers are visible; otherwise, false.
|
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 value | Image |
|---|---|
| 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.
this.lookUpEdit1.Properties.NullText = String.Empty;
this.lookUpEdit1.Properties.ShowHeader = false;
}
Me.lookUpEdit1.Properties.NullText = String.Empty
Me.lookUpEdit1.Properties.ShowHeader = False
End Sub
See Also
RepositoryItemLookUpEdit Class