# DataGridViewCellBorderStyle

Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.0.0.0)

Specifies the border styles that can be applied to the cells of a [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control.

{% tabs %}
{% tab title="C#" %}

```csharp
public enum DataGridViewCellBorderStyle : Enum
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Enum DataGridViewCellBorderStyle As [Enum]
```

{% endtab %}
{% endtabs %}

## Fields

| Name           | Description                          |
| -------------- | ------------------------------------ |
| **Both**       | Both vertical and horizontal border. |
| **Horizontal** | An horizontal border between rows.   |
| **None**       | No borders.                          |
| **Vertical**   | A vertical border between columns.   |

## Used By

| Name                                                                                                                                   | Description                                                                                                                                               |
| -------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [DataGridView.CellBorderStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#cellborderstyle)                   | Returns or sets the cell border style for the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control.                  |
| [DataGridView.ColumnHeadersBorderStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#columnheadersborderstyle) | Returns or sets the border style for the column headers in the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control. |
