aspnet-devexpress-dot-web-dot-aspxgridviewsettings-8de386e2.md
Specifies which grid lines are visible in the grid.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue(GridLines.Both)]
public GridLines GridLines { get; set; }
<DefaultValue(GridLines.Both)>
Public Property GridLines As GridLines
| Type | Default | Description |
|---|---|---|
| GridLines | Both |
One of the enumeration values.
|
You can access this nested property as listed below:
| Object Type | Path to GridLines |
|---|---|
| ASPxGridView |
.Settings .GridLines
| | GridViewProperties |
.Settings .GridLines
|
If you apply a built-in DevExpress theme, note that some themes, such as the DevExpress Style , all Office 2010 , or iOS themes, are not intended to display grid lines in the grid. In these themes, the GridLines property has no effect.
If the grid contains data cell bands, the GridLines property is not in effect. Both grid lines (vertical and horizontal) are always displayed.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GridLines 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.
lookupEdit.GridViewProperties.Settings.ShowColumnHeaders = false;
lookupEdit.GridViewProperties.Settings.GridLines = GridLines.None;
lookupEdit.GridViewStyles.SelectedRow.BackColor = System.Drawing.ColorTranslator.FromHtml("#00fbfbfb");
lookupEdit.GridViewProperties.Settings.ShowColumnHeaders = False
lookupEdit.GridViewProperties.Settings.GridLines = GridLines.None
lookupEdit.GridViewStyles.SelectedRow.BackColor = ColorTranslator.FromHtml("#00fbfbfb")
See Also