ASPxGridViewSettings.ShowColumnHeaders Property
Specifies whether column headers are visible.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v25.2.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
| Type | Default | Description |
|---|---|---|
| Boolean | true |
|
Property Paths
You can access this nested property as listed below:
| Object Type | Path to ShowColumnHeaders |
|---|---|
| ASPxGridView |
|
| GridViewProperties |
|
Remarks
The example below demonstrates how to hide column headers in the exported document. For this purpose, set the ShowColumnHeaders property to false in the BeforeExport event handler.
<dx:ASPxGridView ID="grid" runat="server" DataSourceID="CustomerReportsDataSource"
OnBeforeExport="grid_BeforeExport"/>
protected void grid_BeforeExport(object sender, DevExpress.Web.ASPxGridBeforeExportEventArgs e) {
grid.Settings.ShowColumnHeaders = false;
}
When the ShowColumnHeaders property is set to false, the ColumnResizeMode property is ignored and column resizing is disabled.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowColumnHeaders 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.