# DataGridView

Namespace: **Wisej.Web**

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

* [Control](https://docs.wisej.com/api/wisej.web/general/control)
  * [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview)

Represents a data grid control.

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

```csharp
public class DataGridView : Control, ISupportInitialize, IWisejDataStore, IWisejHandler, IReadOnly
```

{% endtab %}

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

```visual-basic
Public Class DataGridView
    Inherits Control
    Implements ISupportInitialize, IWisejDataStore, IWisejHandler, IReadOnly
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) DataGridView()

Initializes a new instance of the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) class.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) DataGridView(dataSource, onCellClick)

Initializes a new instance of the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) class with a specified data source and an event handler for the [CellClick](#cellclick) event.

| Name            | Type                                                                                                | Description                                                                                                               |
| --------------- | --------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| **dataSource**  | [Object](https://docs.microsoft.com/dotnet/api/system.object)                                       | The data source to be displayed in the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview). |
| **onCellClick** | [Action\<Object, DataGridViewCellEventArgs>](https://docs.microsoft.com/dotnet/api/system.action-2) | An Action delegate to handle the CellClick event. Can be null.                                                            |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) DataGridView(location, size)

Initializes a new instance of the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) class with a specified location and size.

| Name         | Type                                                                | Description                                                                                                                  |
| ------------ | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| **location** | [Point](https://docs.microsoft.com/dotnet/api/system.drawing.point) | The location of the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) on its parent control. |
| **size**     | [Size](https://docs.microsoft.com/dotnet/api/system.drawing.size)   | The size of the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview).                           |

## Properties

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AllowSortingDataSource

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) can automatically sort rows in the [DataSource](#datasource) when the data is in an [IList](https://docs.microsoft.com/dotnet/api/system.collections.ilist) object. (Default: `True`)

When the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) is data-bound, sorting is delegated to the [DataSource](#datasource) when it supports sorting (see [SupportsSorting](https://docs.microsoft.com/dotnet/api/system.componentmodel.ibindinglist.supportssorting)). Otherwise, if the data is in an [IList](https://docs.microsoft.com/dotnet/api/system.collections.ilist) object and [AllowSortingDataSource](#allowsortingdatasource) is true, Wisej swaps the rows in the data source. This behavior is different than WinForms, where sorting of the data source is always delegated to the data source and is otherwise ignored. Setting [AllowSortingDataSource](#allowsortingdatasource) to false reverts to the same behavior as in WinForms.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AllowUserToAddRows

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether the user can add new rows. (Default: `False`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AllowUserToDeleteRows

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether the user is allowed to delete rows from the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview). (Default: `False`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AllowUserToOrderColumns

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether manual column repositioning is enabled. (Default: `False`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AllowUserToResizeColumns

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether users can resize columns. (Default: `True`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AllowUserToResizeRows

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether users can resize rows. (Default: `True`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AutoGenerateColumns

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether columns are created automatically when the [DataSource](#datasource) or [DataMember](#datamember) properties are set. (Default: `True`)

You can change the default value across the application using the [AutoGenerateColumnsDefault](#autogeneratecolumnsdefault) property or related [AppContext](https://docs.microsoft.com/dotnet/api/system.appcontext) switch.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) AutoGenerateColumnsDefault

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Default value for the [AutoGenerateColumns](#autogeneratecolumns) property. <mark style="color:blue;background-color:green;">Since 3.5.6</mark> (Default: `True`)

The default is true. You can set the value by code or using [AppContext](https://docs.microsoft.com/dotnet/api/system.appcontext) switches: `AppContext.SetSwitch("DataGridViewAutoGenerateColumns", false);`

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AutoSelectFirstRow

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether the first row or cell, depending on [SelectionMode](#selectionmode), is automatically selected when the grid is populated. <mark style="color:blue;background-color:green;">Since 3.5.6</mark> (Default: `True`)

You can change the default value across the application using the [AutoSelectFirstRowDefault](#autoselectfirstrowdefault) property or related [AppContext](https://docs.microsoft.com/dotnet/api/system.appcontext) switch.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) AutoSelectFirstRowDefault

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): EXPERIMENTAL: Default value for the [AutoSelectFirstRow](#autoselectfirstrow) property. <mark style="color:blue;background-color:green;">Since 3.5.6</mark> (Default: `True`)

The default is true. You can set the value by code or using [AppContext](https://docs.microsoft.com/dotnet/api/system.appcontext) switches: `AppContext.SetSwitch("DataGridViewAutoSelectFirstRow", false);`

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AutoSize

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets a value that indicates whether the control resizes based on its contents. (Default: `False`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AutoSizeColumnsMode

[DataGridViewAutoSizeColumnsMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewautosizecolumnsmode): Returns or sets a value indicating how column widths are determined. (Default: `None`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AutoSizeRowsMode

[DataGridViewAutoSizeRowsMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewautosizerowsmode): Returns or sets a value indicating how row heights are determined. (Default: `None`)

**Throws:**

* [InvalidOperationException](https://docs.microsoft.com/dotnet/api/system.invalidoperationexception) The specified value when setting this property is [RowHeader](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewautosizerowsmode#fields) and row headers are hidden.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) BlockSize

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Number of rows stored in a cache block. Determines the number of rows requested by the client when scrolling the grid.

It's better not to touch this value unless you know what you are doing.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) BorderStyle

[BorderStyle](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.borderstyle): Returns or sets the border style for the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview). (Default: `Solid`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellBorderStyle

[DataGridViewCellBorderStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellborderstyle): Returns or sets the cell border style for the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control. (Default: `Both`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ClientArea

[Rectangle](https://docs.microsoft.com/dotnet/api/system.drawing.rectangle): Returns the client rectangle excluding the non-client caption and borders dimensions.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ClipboardCopyMode

[DataGridViewClipboardCopyMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewclipboardcopymode): Returns or sets a value that indicates whether users can copy cell text values to the [Clipboard](https://docs.wisej.com/api/wisej.web/general/wisej.web.clipboard) and whether row and column header text is included. (Default: `EnableWithAutoHeaderText`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ColumnCount

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns or sets the number of columns displayed in the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview). (Default: `0`)

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The specified value when setting this property is less than 0.
* [InvalidOperationException](https://docs.microsoft.com/dotnet/api/system.invalidoperationexception) When setting this property, the [DataSource](#datasource) property has been set.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ColumnHeadersBorderStyle

[DataGridViewCellBorderStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellborderstyle): 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. (Default: `Both`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ColumnHeadersDefaultCellStyle

[DataGridViewCellStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle): Returns or sets the default column header style.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ColumnHeadersHeight

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns or sets the height, in pixels, of the column headers row.

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The specified value when setting this property is less than the minimum height of 4 pixels or is greater than the maximum height of 32768 pixels.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ColumnHeadersHeightSizeMode

[DataGridViewColumnHeadersHeightSizeMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumnheadersheightsizemode): Returns or sets whether the height of the column headers is adjustable and whether it can be adjusted by the user or is automatically adjusted to fit the contents of the headers. <mark style="color:blue;background-color:green;">Since 3.0.13</mark> (Default: `DisableResizing`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ColumnHeadersVisible

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether the column header row is displayed. (Default: `True`)

**Throws:**

* [InvalidOperationException](https://docs.microsoft.com/dotnet/api/system.invalidoperationexception) The specified value when setting this property is false and one or more columns have an [InheritedAutoSizeMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#inheritedautosizemode) property value of [ColumnHeader](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewautosizecolumnmode#fields).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Columns

[DataGridViewColumnCollection](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumncollection): Returns a collection that contains all the columns in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CurrentCell

[DataGridViewCell](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcell): Returns or sets the currently active cell.

**Throws:**

* [InvalidOperationException](https://docs.microsoft.com/dotnet/api/system.invalidoperationexception) The value of this property cannot be set because changes to the current cell cannot be committed or canceled. Or the specified cell when setting this property is in a hidden row or column. Re-entrant calling is only allowed when the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) is bound to a [DataSource](#datasource). Re-entrant calling results from a change to the underlying data.
* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) The specified cell when setting this property is not in the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CurrentCellAddress

[Point](https://docs.microsoft.com/dotnet/api/system.drawing.point): Returns the row and column indexes of the currently active cell.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CurrentRow

[DataGridViewRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow): Returns the row containing the current cell.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) DataMember

[String](https://docs.microsoft.com/dotnet/api/system.string): Returns or sets the name of the list or table in the data source for which the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) is displaying data. (Default: `""`)

**Throws:**

* [Exception](https://docs.microsoft.com/dotnet/api/system.exception) An error occurred in the data source and either there is no handler for the [DataError](#dataerror) event or the handler has set the [ThrowException](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewdataerroreventargs#throwexception) property to true. The exception object can typically be cast to type [FormatException](https://docs.microsoft.com/dotnet/api/system.formatexception).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) DataSource

[Object](https://docs.microsoft.com/dotnet/api/system.object): Returns or sets the data source that the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) is displaying data for. (Default: `null`)

**Throws:**

* [Exception](https://docs.microsoft.com/dotnet/api/system.exception) An error occurred in the data source and either there is no handler for the [DataError](#dataerror) event or the handler has set the [ThrowException](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewdataerroreventargs#throwexception) property to true. The exception object can typically be cast to type [FormatException](https://docs.microsoft.com/dotnet/api/system.formatexception).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) DefaultCellStyle

[DataGridViewCellStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle): Returns or sets the default cell style to be applied to the cells in the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) if no other cell style properties are set.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) DefaultRowHeight

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns or sets the default row height.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) DefaultSortMode

[DataGridViewColumnsSortMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumnssortmode): Returns or sets the default [SortMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#sortmode) for all columns when the property [SortMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#sortmode) is set to [NotSet](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumnsortmode#fields) (default). (Default: `Automatic`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) EditingControl

[Control](https://docs.wisej.com/api/wisej.web/general/control): Returns the control hosted by the current cell, if a cell with an editing control is in edit mode.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) EditMode

[DataGridViewEditMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridvieweditmode): Returns or sets a value indicating how to begin editing a cell. (Default: `EditOnKeystrokeOrF2`)

**Throws:**

* [Exception](https://docs.microsoft.com/dotnet/api/system.exception) The specified value when setting this property would cause the control to enter edit mode, but initialization of the editing cell value failed and either there is no handler for the [DataError](#dataerror) event or the handler has set the [ThrowException](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewdataerroreventargs#throwexception) property to true. The exception object can typically be cast to type [FormatException](https://docs.microsoft.com/dotnet/api/system.formatexception).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) FirstDisplayedCell

[DataGridViewCell](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcell): Returns the first cell currently displayed in the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) in the upper left corner.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) FirstDisplayedColumnIndex

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns the index of the column that is the first non-frozen column displayed on the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview).

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The specified value when setting this property is less than 0 or greater than the number of columns in the control minus 1.
* [InvalidOperationException](https://docs.microsoft.com/dotnet/api/system.invalidoperationexception) The specified value when setting this property indicates a column with a [Visible](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#visible) property value of false. Or the specified value when setting this property indicates a column with a [Frozen](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#frozen) property value of true.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) FirstDisplayedRowIndex

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns the index of the row that is the first row displayed on the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview).

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The specified value when setting this property is less than 0 or greater than the number of rows in the control minus 1.
* [InvalidOperationException](https://docs.microsoft.com/dotnet/api/system.invalidoperationexception) The specified value when setting this property indicates a row with a [Visible](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewrow#visible) property value of false. Or the specified value when setting this property indicates a column with a [Frozen](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewrow#frozen) property value of true.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) HorizontalScrollingOffset

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns the number of pixels by which the control is scrolled horizontally.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) HScroll

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns whether the horizontal scroll bar is visible.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Indent

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns or sets the distance in pixels to indent each child row node level. (Default: `-1`)

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The assigned value is less than 0 (see Remarks); or the assigned value is greater than 500.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) IsCurrentCellDirty

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns a value indicating whether the current cell has uncommitted changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) IsCurrentCellInEditMode

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns a value indicating whether the currently active cell is being edited.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) IsCurrentRowDirty

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns a value indicating whether the current row has uncommitted changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Item(columnIndex, rowIndex)

[DataGridViewCell](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcell): Returns or set the cell located in the specified column and at the specified row.

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *columnIndex* is less than 0 or greater than the number of columns in the control minus 1; or *rowIndex* is less than 0 or greater than the number of rows in the control minus 1.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Item(columnName, rowIndex)

[DataGridViewCell](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcell): Returns or set the cell located in the specified column and at the specified row.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Item(column, rowIndex)

[DataGridViewCell](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcell): Returns or set the cell located in the specified column and at the specified row.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Item(cellAddress)

[DataGridViewCell](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcell): Returns or set the cell located in the specified location.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) KeepSameRowHeight

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether the rows are always of the same height. (Default: `False`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) LiveResize

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether the column and row resizing should be live: updated as the user resizes the row or the column. (Default: `False`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) MaxCachedBlocks

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Maximum number of blocks kept in the client cache.

It's better not to touch this value unless you know what you are doing.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) MultiSelect

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether the user is allowed to select more than one cell, row, or column of the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) at a time. (Default: `True`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) NewRowIndex

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns the index of the row for new records.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) NoDataMessage

[String](https://docs.microsoft.com/dotnet/api/system.string): Returns or sets an HTML string that is displayed when the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) doesn't contain any row. (Default: `""`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ReadOnly

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether the user can edit the cells of the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control. (Default: `False`)

**Throws:**

* [InvalidOperationException](https://docs.microsoft.com/dotnet/api/system.invalidoperationexception) The specified value when setting this property is true, the current cell is in edit mode, and the current cell contains changes that cannot be committed.
* [Exception](https://docs.microsoft.com/dotnet/api/system.exception) The specified value when setting this property would cause the control to enter edit mode, but initialization of the editing cell value failed and either there is no handler for the [DataError](#dataerror) event or the handler has set the [ThrowException](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewdataerroreventargs#throwexception) property to true. The exception object can typically be cast to type [FormatException](https://docs.microsoft.com/dotnet/api/system.formatexception).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RightClickSelection

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether the row under the pointer gets selected on a right click. (Default: `False`)

When the right click lands outside of a selected area the selection is not changed regardless of the value of [RightClickSelection](#rightclickselection).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RowCount

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns or sets the number of rows displayed in the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview). (Default: `0`)

**Throws:**

* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) The specified value when setting this property is less than 0 or less than 1 and [AllowUserToAddRows](#allowusertoaddrows) is set to true.
* [InvalidOperationException](https://docs.microsoft.com/dotnet/api/system.invalidoperationexception) When setting this property, the [DataSource](#datasource) property is set.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RowHeaderColumn

[DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn): Returns the [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) for the row headers.

Use this [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) to set the style and other properties for all the row headers.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RowHeadersDefaultCellStyle

[DataGridViewCellStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle): Returns or sets the default style applied to the row header cells.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RowHeadersMaximumWidth

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns or sets the minimum width, in pixels, of the column that contains the row headers.

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value is less than the minimum width of 2 pixels or is greater than the maximum width of 32000 pixels.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RowHeadersMinimumWidth

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns or sets the minimum width, in pixels, of the column that contains the row headers.

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value is less than the minimum width of 2 pixels or is greater than the maximum width of 2000 pixels.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RowHeadersVisible

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether the column that contains row headers is displayed. (Default: `True`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RowHeadersWidth

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns or sets the width, in pixels, of the column that contains the row headers.

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value is less than the minimum width of 2 pixels or is greater than the maximum width of 2000 pixels.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RowHeadersWidthSizeMode

[DataGridViewRowHeadersWidthSizeMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowheaderswidthsizemode): Returns or sets whether the width of the row headers is adjustable and whether it can be adjusted by the user or is automatically adjusted to fit the contents of the headers. (Default: `EnableResizing`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Rows

[DataGridViewRowCollection](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowcollection): Returns a collection that contains all the rows in the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RowTemplate

[DataGridViewRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow): Returns or sets the row that represents the template for all the rows in the control.

**Throws:**

* [InvalidOperationException](https://docs.microsoft.com/dotnet/api/system.invalidoperationexception) The specified row when setting this property has its [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewelement#datagridview) property set.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ScrollBars

[ScrollBars](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.scrollbars): Returns or sets the type of scroll bars to display for the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control. (Default: `Both`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SelectedCells

[DataGridViewSelectedCellCollection](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewselectedcellcollection): Returns the collection of selected cells.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SelectedColumns

[DataGridViewSelectedColumnCollection](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewselectedcolumncollection): Returns the collection of selected columns.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SelectedRows

[DataGridViewSelectedRowCollection](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewselectedrowcollection): Returns the collection of selected rows.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SelectionDelay

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Milliseconds to wait before sending selection events to the server. (Default: `150`)

Use this property to avoid flooding the server with selection change events when users quickly select rows in a data-bound [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) that triggers other data-bounds controls to get updated. **Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) When the value is less than 0 or greater than 10000 (10 seconds).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SelectionMode

[DataGridViewSelectionMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewselectionmode): Returns or sets a value indicating how the cells of the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) can be selected. (Default: `FullRowSelect`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ShowCellErrors

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether cells will display an error glyphs for each cell that contains a data entry error. (Default: `True`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ShowCellToolTips

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether or not ToolTips will show when the mouse pointer pauses on a cell. (Default: `True`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ShowColumnVisibilityMenu

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether the column visibility menu button is visible. (Default: `True`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ShowFocusCell

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets a value indicating whether the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) widget highlights the currently focused cell. (Default: `True`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ShowRowErrors

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether row headers will display an error glyphs for each row that contains a data entry error. (Default: `True`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SortedColumn

[DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn): Returns the column by which the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) contents are currently sorted.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SortFrozenRows

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether frozen rows should be sorted when sorting a column. (Default: `True`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SortOrder

[SortOrder](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.sortorder): Returns a value indicating whether the items in the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control are sorted in ascending or descending order, or are not sorted.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SortSelectionMode

[DataGridViewSortSelectionMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsortselectionmode): Returns or sets a value indicating how the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) updates the selection of rows and cells when it's sorted. (Default: `UpdatePosition`)

The selection is always cleared when sorting a data-bound [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) or when the grid contains hierarchical rows.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) StandardReturn

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): EXPERIMENTAL: Returns or sets whether the RETURN (Enter) key moves the focus to the cell below the current cell, rather than entering edit mode. (Default: `False`)

WinForms standard behavior corresponds to [StandardReturn](#standardreturn) set to true.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) StandardTab

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether the TAB key moves the focus to the next control in the tab order rather than moving focus to the next cell. (Default: `False`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Tools

[ComponentToolCollection](https://docs.wisej.com/api/wisej.web/editors/wisej.web.componenttoolcollection): Returns the instance of [ComponentToolCollection](https://docs.wisej.com/api/wisej.web/editors/wisej.web.componenttoolcollection) associated with this control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ToolsPosition

[Position](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.position): Returns or sets the position of the [ComponentTool](https://docs.wisej.com/api/wisej.web/editors/wisej.web.componenttool) items associated with this control. (Default: `Top`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) TopLeftHeaderCell

[DataGridViewColumnHeaderCell](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumnheadercell): Returns or sets the header cell located in the upper left corner of the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) TreeColumn

[DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn): Returns or sets the column that displays the node open/close tree icons.

By default the DataGridView shows the open/close tree icons on the first visible and non-frozen column.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) VirtualMode

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns or sets whether you have provided your own data-management operations for the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control. (Default: `False`)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) VisibleRowCount

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns the total number of visible rows currently displayed.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) VScroll

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean): Returns whether the vertical scroll bar is visible.

## Methods

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AddSummaryRows(summaryType, groupCol, summaryCol, style, customSummary)

Creates or updates a [DataGridViewSummaryRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow) for each group limited by the values in column *groupCol* .

| Parameter                                                                                                                                                                                                                       | Type                                                                                                                       | Description                                                                                                                                               |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **summaryType**                                                                                                                                                                                                                 | [SummaryType](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.summarytype)                     | Determines the aggregation type.                                                                                                                          |
| **groupCol**                                                                                                                                                                                                                    | [String](https://docs.microsoft.com/dotnet/api/system.string)                                                              | Name of the column that determines the group break values.                                                                                                |
| **summaryCol**                                                                                                                                                                                                                  | [String](https://docs.microsoft.com/dotnet/api/system.string)                                                              | name of the column to aggregate.                                                                                                                          |
| **style** ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-723b640963c6cd781ff8c5ce5b24149fa0af7b9c%2Fbadge-optional.svg?alt=media)         | [DataGridViewCellStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) | Optional [DataGridViewCellStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) for the summary rows. |
| **customSummary** ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-723b640963c6cd781ff8c5ce5b24149fa0af7b9c%2Fbadge-optional.svg?alt=media) | [CustomSummary](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridview.customsummary)    | Optional custom summary function, used when *summaryType* is [Custom](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.summarytype#fields). |

**Returns:** [DataGridViewSummaryRow\[\]](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow). Array of the [DataGridViewSummaryRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow) rows displaying the aggregated values.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AddSummaryRows(summaryType, summaryPosition, groupCol, summaryCol, style, customSummary)

Creates or updates a [DataGridViewSummaryRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow) for each group limited by the values in column *groupCol* .

| Parameter                                                                                                                                                                                                                       | Type                                                                                                                       | Description                                                                                                                                                 |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **summaryType**                                                                                                                                                                                                                 | [SummaryType](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.summarytype)                     | Determines the aggregation type.                                                                                                                            |
| **summaryPosition**                                                                                                                                                                                                             | [SummaryRowPosition](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.summaryrowposition)       | Indicates the position of the [DataGridViewSummaryRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow). |
| **groupCol**                                                                                                                                                                                                                    | [String](https://docs.microsoft.com/dotnet/api/system.string)                                                              | Name of the column that determines the group break values.                                                                                                  |
| **summaryCol**                                                                                                                                                                                                                  | [String](https://docs.microsoft.com/dotnet/api/system.string)                                                              | Name of the column to aggregate.                                                                                                                            |
| **style** ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-723b640963c6cd781ff8c5ce5b24149fa0af7b9c%2Fbadge-optional.svg?alt=media)         | [DataGridViewCellStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) | Optional [DataGridViewCellStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) for the summary rows.   |
| **customSummary** ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-723b640963c6cd781ff8c5ce5b24149fa0af7b9c%2Fbadge-optional.svg?alt=media) | [CustomSummary](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridview.customsummary)    | Optional custom summary function, used when *summaryType* is [Custom](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.summarytype#fields).   |

**Returns:** [DataGridViewSummaryRow\[\]](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow). Array of the [DataGridViewSummaryRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow) rows displaying the aggregated values.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AddSummaryRows(summaryType, groupFromCol, groupToCol, summaryCol, style, customSummary)

Creates or updates a [DataGridViewSummaryRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow) for each group limited by the values in the columns from *groupFromCol* to *groupToCol* .

| Parameter                                                                                                                                                                                                                       | Type                                                                                                                       | Description                                                                                                                                               |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **summaryType**                                                                                                                                                                                                                 | [SummaryType](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.summarytype)                     | Determines the aggregation type.                                                                                                                          |
| **groupFromCol**                                                                                                                                                                                                                | [String](https://docs.microsoft.com/dotnet/api/system.string)                                                              | Name of the first column that determines the group break values.                                                                                          |
| **groupToCol**                                                                                                                                                                                                                  | [String](https://docs.microsoft.com/dotnet/api/system.string)                                                              | Name of the last column that determines the group break values.                                                                                           |
| **summaryCol**                                                                                                                                                                                                                  | [String](https://docs.microsoft.com/dotnet/api/system.string)                                                              | Name of the column to aggregate.                                                                                                                          |
| **style** ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-723b640963c6cd781ff8c5ce5b24149fa0af7b9c%2Fbadge-optional.svg?alt=media)         | [DataGridViewCellStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) | Optional [DataGridViewCellStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) for the summary rows. |
| **customSummary** ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-723b640963c6cd781ff8c5ce5b24149fa0af7b9c%2Fbadge-optional.svg?alt=media) | [CustomSummary](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridview.customsummary)    | Optional custom summary function, used when *summaryType* is [Custom](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.summarytype#fields). |

**Returns:** [DataGridViewSummaryRow\[\]](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow). Array of the [DataGridViewSummaryRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow) rows displaying the aggregated values.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AddSummaryRows(summaryType, summaryPosition, groupFromCol, groupToCol, summaryCol, style, customSummary)

Creates or updates a [DataGridViewSummaryRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow) for each group limited by the values in the columns from *groupFromCol* to *groupToCol* .

| Parameter                                                                                                                                                                                                                       | Type                                                                                                                       | Description                                                                                                                                                 |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **summaryType**                                                                                                                                                                                                                 | [SummaryType](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.summarytype)                     | Determines the aggregation type.                                                                                                                            |
| **summaryPosition**                                                                                                                                                                                                             | [SummaryRowPosition](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.summaryrowposition)       | Indicates the position of the [DataGridViewSummaryRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow). |
| **groupFromCol**                                                                                                                                                                                                                | [String](https://docs.microsoft.com/dotnet/api/system.string)                                                              | Name of the first column that determines the group break values.                                                                                            |
| **groupToCol**                                                                                                                                                                                                                  | [String](https://docs.microsoft.com/dotnet/api/system.string)                                                              | Name of the last column that determines the group break values.                                                                                             |
| **summaryCol**                                                                                                                                                                                                                  | [String](https://docs.microsoft.com/dotnet/api/system.string)                                                              | Name of the column to aggregate.                                                                                                                            |
| **style** ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-723b640963c6cd781ff8c5ce5b24149fa0af7b9c%2Fbadge-optional.svg?alt=media)         | [DataGridViewCellStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) | Optional [DataGridViewCellStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) for the summary rows.   |
| **customSummary** ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-723b640963c6cd781ff8c5ce5b24149fa0af7b9c%2Fbadge-optional.svg?alt=media) | [CustomSummary](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridview.customsummary)    | Optional custom summary function, used when *summaryType* is [Custom](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.summarytype#fields).   |

**Returns:** [DataGridViewSummaryRow\[\]](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow). Array of the [DataGridViewSummaryRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow) rows displaying the aggregated values.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AddSummaryRows(summaryType, groupCol, summaryCol, style, customSummary)

Creates or updates a [DataGridViewSummaryRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow) for each group limited by the values in columns *groupCol* .

| Parameter                                                                                                                                                                                                                       | Type                                                                                                                       | Description                                                                                                                                               |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **summaryType**                                                                                                                                                                                                                 | [SummaryType](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.summarytype)                     | Determines the aggregation type.                                                                                                                          |
| **groupCol**                                                                                                                                                                                                                    | [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn)       | Column that determines the group break values.                                                                                                            |
| **summaryCol**                                                                                                                                                                                                                  | [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn)       | Column to aggregate.                                                                                                                                      |
| **style** ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-723b640963c6cd781ff8c5ce5b24149fa0af7b9c%2Fbadge-optional.svg?alt=media)         | [DataGridViewCellStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) | Optional [DataGridViewCellStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) for the summary rows. |
| **customSummary** ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-723b640963c6cd781ff8c5ce5b24149fa0af7b9c%2Fbadge-optional.svg?alt=media) | [CustomSummary](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridview.customsummary)    | Optional custom summary function, used when *summaryType* is [Custom](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.summarytype#fields). |

**Returns:** [DataGridViewSummaryRow\[\]](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow). Array of the [DataGridViewSummaryRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow) rows displaying the aggregated values.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AddSummaryRows(summaryType, summaryPosition, groupCol, summaryCol, style, customSummary)

Creates or updates a [DataGridViewSummaryRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow) for each group limited by the values in columns *groupCol* .

| Parameter                                                                                                                                                                                                                       | Type                                                                                                                       | Description                                                                                                                                                 |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **summaryType**                                                                                                                                                                                                                 | [SummaryType](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.summarytype)                     | Determines the aggregation type.                                                                                                                            |
| **summaryPosition**                                                                                                                                                                                                             | [SummaryRowPosition](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.summaryrowposition)       | Indicates the position of the [DataGridViewSummaryRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow). |
| **groupCol**                                                                                                                                                                                                                    | [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn)       | Column that determines the group break values.                                                                                                              |
| **summaryCol**                                                                                                                                                                                                                  | [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn)       | Column to aggregate.                                                                                                                                        |
| **style** ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-723b640963c6cd781ff8c5ce5b24149fa0af7b9c%2Fbadge-optional.svg?alt=media)         | [DataGridViewCellStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) | Optional [DataGridViewCellStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) for the summary rows.   |
| **customSummary** ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-723b640963c6cd781ff8c5ce5b24149fa0af7b9c%2Fbadge-optional.svg?alt=media) | [CustomSummary](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridview.customsummary)    | Optional custom summary function, used when *summaryType* is [Custom](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.summarytype#fields).   |

**Returns:** [DataGridViewSummaryRow\[\]](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow). Array of the [DataGridViewSummaryRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow) rows displaying the aggregated values.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AddSummaryRows(summaryType, groupFromCol, groupToCol, summaryCol, style, customSummary)

Creates or updates a [DataGridViewSummaryRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow) for each group limited by the values in the columns from *groupFromCol* to *groupToCol* .

| Parameter                                                                                                                                                                                                                       | Type                                                                                                                       | Description                                                                                                                                               |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **summaryType**                                                                                                                                                                                                                 | [SummaryType](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.summarytype)                     | Determines the aggregation type.                                                                                                                          |
| **groupFromCol**                                                                                                                                                                                                                | [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn)       | First column that determines the group break values.                                                                                                      |
| **groupToCol**                                                                                                                                                                                                                  | [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn)       | Last column that determines the group break values.                                                                                                       |
| **summaryCol**                                                                                                                                                                                                                  | [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn)       | Column to aggregate.                                                                                                                                      |
| **style** ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-723b640963c6cd781ff8c5ce5b24149fa0af7b9c%2Fbadge-optional.svg?alt=media)         | [DataGridViewCellStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) | Optional [DataGridViewCellStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) for the summary rows. |
| **customSummary** ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-723b640963c6cd781ff8c5ce5b24149fa0af7b9c%2Fbadge-optional.svg?alt=media) | [CustomSummary](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridview.customsummary)    | Optional custom summary function, used when *summaryType* is [Custom](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.summarytype#fields). |

**Returns:** [DataGridViewSummaryRow\[\]](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow). Array of the [DataGridViewSummaryRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow) rows displaying the aggregated values.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AddSummaryRows(summaryType, summaryPosition, groupFromCol, groupToCol, summaryCol, style, customSummary)

Creates or updates a [DataGridViewSummaryRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow) for each group limited by the values in the columns from *groupFromCol* to *groupToCol* .

| Parameter                                                                                                                                                                                                                       | Type                                                                                                                       | Description                                                                                                                                                 |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **summaryType**                                                                                                                                                                                                                 | [SummaryType](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.summarytype)                     | Determines the aggregation type.                                                                                                                            |
| **summaryPosition**                                                                                                                                                                                                             | [SummaryRowPosition](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.summaryrowposition)       | Indicates the position of the [DataGridViewSummaryRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow). |
| **groupFromCol**                                                                                                                                                                                                                | [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn)       | First column that determines the group break values.                                                                                                        |
| **groupToCol**                                                                                                                                                                                                                  | [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn)       | Last column that determines the group break values.                                                                                                         |
| **summaryCol**                                                                                                                                                                                                                  | [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn)       | Column to aggregate.                                                                                                                                        |
| **style** ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-723b640963c6cd781ff8c5ce5b24149fa0af7b9c%2Fbadge-optional.svg?alt=media)         | [DataGridViewCellStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) | Optional [DataGridViewCellStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) for the summary rows.   |
| **customSummary** ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-723b640963c6cd781ff8c5ce5b24149fa0af7b9c%2Fbadge-optional.svg?alt=media) | [CustomSummary](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridview.customsummary)    | Optional custom summary function, used when *summaryType* is [Custom](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.summarytype#fields).   |

**Returns:** [DataGridViewSummaryRow\[\]](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow). Array of the [DataGridViewSummaryRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow) rows displaying the aggregated values.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Append(data, dataMember)

Populates the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) from the *data* appending the rows to the existing rows.

| Parameter                                                                                                                                                                                                                    | Type                                                          | Description                                                                                                                                                              |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **data**                                                                                                                                                                                                                     | [Object](https://docs.microsoft.com/dotnet/api/system.object) | The object that contains data for the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) to display.                                      |
| **dataMember** ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-723b640963c6cd781ff8c5ce5b24149fa0af7b9c%2Fbadge-optional.svg?alt=media) | [String](https://docs.microsoft.com/dotnet/api/system.string) | The name of the table or list in the *data* object for which the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) should load the data. |

**Returns:** [Int32](https://docs.microsoft.com/dotnet/api/system.int32). Numbers of rows appended.

Use this method to fill a [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) without binding it to the data source.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AreAllCellsSelected(includeInvisibleCells)

Returns whether all the cells are currently selected.

| Parameter                 | Type                                                            | Description                                                                                                                                                             |
| ------------------------- | --------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **includeInvisibleCells** | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) | true to include the rows and columns with the [Visible](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewband#visible) property set to false. |

**Returns:** [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean). true if all cells (or all visible cells) are selected or if there are no cells (or no visible cells); otherwise, returns false.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AutoResizeColumn(columnIndex)

Adjusts the width of the column to fit the contents of its cells including the header cell.

| Parameter       | Type                                                        | Description                                                  |
| --------------- | ----------------------------------------------------------- | ------------------------------------------------------------ |
| **columnIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The index of the column to resize; -1 indicates all columns. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *columnIndex* is not in the valid range of -1 (all columns) to the number of columns minus 1.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AutoResizeColumn(columnIndex, extraSpace)

Adjusts the width of the column to fit the contents of its cells including the header cell.

| Parameter       | Type                                                        | Description                                                  |
| --------------- | ----------------------------------------------------------- | ------------------------------------------------------------ |
| **columnIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The index of the column to resize; -1 indicates all columns. |
| **extraSpace**  | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | Additional space in pixels.                                  |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *columnIndex* is not in the valid range of -1 (all columns) to the number of columns minus 1.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AutoResizeColumn(columnIndex, autoSizeMode)

Adjusts the width of the specified column using the specified size mode.

| Parameter        | Type                                                                                                                                         | Description                                                                                                                                                     |
| ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **columnIndex**  | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                                                                  | The index of the column to resize; -1 indicates all columns.                                                                                                    |
| **autoSizeMode** | [DataGridViewAutoSizeColumnMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewautosizecolumnmode) | One of the [DataGridViewAutoSizeColumnMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewautosizecolumnmode) values. |

**Throws:**

* [InvalidOperationException](https://docs.microsoft.com/dotnet/api/system.invalidoperationexception) *autoSizeMode* has the value [ColumnHeader](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewautosizecolumnmode#fields) and [ColumnHeadersVisible](#columnheadersvisible) is false.
* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) *autoSizeMode* has the value [NotSet](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewautosizecolumnmode#fields), [DoubleClick](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewautosizecolumnmode#fields), or [Fill](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewautosizecolumnmode#fields).
* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *columnIndex* is not in the valid range of -1 (all columns) to the number of columns minus 1.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AutoResizeColumn(columnIndex, autoSizeMode, extraSpace)

Adjusts the width of the specified column using the specified size mode.

| Parameter        | Type                                                                                                                                         | Description                                                                                                                                                     |
| ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **columnIndex**  | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                                                                  | The index of the column to resize; -1 indicates all columns.                                                                                                    |
| **autoSizeMode** | [DataGridViewAutoSizeColumnMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewautosizecolumnmode) | One of the [DataGridViewAutoSizeColumnMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewautosizecolumnmode) values. |
| **extraSpace**   | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                                                                  | Additional space in pixels.                                                                                                                                     |

**Throws:**

* [InvalidOperationException](https://docs.microsoft.com/dotnet/api/system.invalidoperationexception) *autoSizeMode* has the value [ColumnHeader](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewautosizecolumnmode#fields) and [ColumnHeadersVisible](#columnheadersvisible) is false.
* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) *autoSizeMode* has the value [NotSet](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewautosizecolumnmode#fields), [DoubleClick](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewautosizecolumnmode#fields), or [Fill](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewautosizecolumnmode#fields).
* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *columnIndex* is not in the valid range of -1 (all columns) to the number of columns minus 1.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AutoResizeColumnHeadersHeight()

Adjusts the height of the column headers to fit the contents of the largest header.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AutoResizeColumnHeadersHeight(columnIndex)

Adjusts the height of the column headers based on the contents of the header in the specified column.

| Parameter       | Type                                                        | Description                                                  |
| --------------- | ----------------------------------------------------------- | ------------------------------------------------------------ |
| **columnIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The index of the column to resize; -1 indicates all columns. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *columnIndex* is not in the valid range of -1 (all columns) to the number of columns minus 1.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AutoResizeColumns()

Adjusts the width of all columns to fit the contents of their cells including the header cells.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AutoResizeColumns(extraSpace)

Adjusts the width of all columns to fit the contents of their cells including the header cells.

| Parameter      | Type                                                        | Description                 |
| -------------- | ----------------------------------------------------------- | --------------------------- |
| **extraSpace** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | Additional space in pixels. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AutoResizeColumns(autoSizeMode)

Adjusts the width of all columns using the specified size mode.

| Parameter        | Type                                                                                                                                           | Description                                                                                                                                                       |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **autoSizeMode** | [DataGridViewAutoSizeColumnsMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewautosizecolumnsmode) | One of the [DataGridViewAutoSizeColumnsMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewautosizecolumnsmode) values. |

**Throws:**

* [InvalidOperationException](https://docs.microsoft.com/dotnet/api/system.invalidoperationexception) *autoSizeMode* has the value [ColumnHeader](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewautosizecolumnsmode#fields) and [ColumnHeadersVisible](#columnheadersvisible) is false.
* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) *autoSizeMode* has the value [DoubleClick](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewautosizecolumnsmode#fields) or [Fill](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewautosizecolumnsmode#fields).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AutoResizeColumns(autoSizeMode, extraSpace)

Adjusts the width of all columns using the specified size mode.

| Parameter        | Type                                                                                                                                           | Description                                                                                                                                                       |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **autoSizeMode** | [DataGridViewAutoSizeColumnsMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewautosizecolumnsmode) | One of the [DataGridViewAutoSizeColumnsMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewautosizecolumnsmode) values. |
| **extraSpace**   | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                                                                    | Additional space in pixels.                                                                                                                                       |

**Throws:**

* [InvalidOperationException](https://docs.microsoft.com/dotnet/api/system.invalidoperationexception) *autoSizeMode* has the value [ColumnHeader](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewautosizecolumnsmode#fields) and [ColumnHeadersVisible](#columnheadersvisible) is false.
* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) *autoSizeMode* has the value [DoubleClick](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewautosizecolumnsmode#fields) or [Fill](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewautosizecolumnsmode#fields).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AutoResizeRow(rowIndex)

Adjusts the height of the row to fit the contents of all its cells including the header cell.

| Parameter    | Type                                                        | Description                     |
| ------------ | ----------------------------------------------------------- | ------------------------------- |
| **rowIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The index of the row to resize. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is not in the valid range of -1 (all rows) to the number of rows minus 1.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AutoResizeRow(rowIndex, extraSpace)

Adjusts the height of the row to fit the contents of all its cells including the header cell.

| Parameter      | Type                                                        | Description                     |
| -------------- | ----------------------------------------------------------- | ------------------------------- |
| **rowIndex**   | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The index of the row to resize. |
| **extraSpace** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | Additional space in pixels.     |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is not in the valid range of -1 (all rows) to the number of rows minus 1.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AutoResizeRow(rowIndex, autoSizeMode)

Adjusts the height of the row using the specified size mode.

| Parameter        | Type                                                                                                                                   | Description                                                                                                                                               |
| ---------------- | -------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **rowIndex**     | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                                                            | The index of the row to resize.                                                                                                                           |
| **autoSizeMode** | [DataGridViewAutoSizeRowMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewautosizerowmode) | One of the [DataGridViewAutoSizeRowMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewautosizerowmode) values. |

**Throws:**

* [InvalidOperationException](https://docs.microsoft.com/dotnet/api/system.invalidoperationexception) *autoSizeMode* has the value [RowHeader](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewautosizerowmode#fields) and [RowHeadersVisible](#rowheadersvisible) is false.
* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is not in the valid range of -1 (all rows) to the number of rows minus 1.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AutoResizeRow(rowIndex, autoSizeMode, extraSpace)

Adjusts the height of the row using the specified size mode.

| Parameter        | Type                                                                                                                                   | Description                                                                                                                                               |
| ---------------- | -------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **rowIndex**     | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                                                            | The index of the row to resize.                                                                                                                           |
| **autoSizeMode** | [DataGridViewAutoSizeRowMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewautosizerowmode) | One of the [DataGridViewAutoSizeRowMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewautosizerowmode) values. |
| **extraSpace**   | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                                                            | Additional space in pixels.                                                                                                                               |

**Throws:**

* [InvalidOperationException](https://docs.microsoft.com/dotnet/api/system.invalidoperationexception) *autoSizeMode* has the value [RowHeader](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewautosizerowmode#fields) and [RowHeadersVisible](#rowheadersvisible) is false.
* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is not in the valid range of -1 (all rows) to the number of rows minus 1.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AutoResizeRowHeadersWidth(autoSizeMode)

Adjusts the width of the row headers using the specified size mode.

| Parameter        | Type                                                                                                                                                   | Description                                                                                                                                                               |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **autoSizeMode** | [DataGridViewRowHeadersWidthSizeMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowheaderswidthsizemode) | One of the [DataGridViewRowHeadersWidthSizeMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowheaderswidthsizemode) values. |

**Throws:**

* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) *autoSizeMode* has the value [EnableResizing](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewrowheaderswidthsizemode#fields) or [DisableResizing](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewrowheaderswidthsizemode#fields).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AutoResizeRowHeadersWidth(autoSizeMode, extraSpace)

Adjusts the width of the row headers using the specified size mode.

| Parameter        | Type                                                                                                                                                   | Description                                                                                                                                                               |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **autoSizeMode** | [DataGridViewRowHeadersWidthSizeMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowheaderswidthsizemode) | One of the [DataGridViewRowHeadersWidthSizeMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowheaderswidthsizemode) values. |
| **extraSpace**   | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                                                                            | Additional space in pixels.                                                                                                                                               |

**Throws:**

* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) *autoSizeMode* has the value [EnableResizing](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewrowheaderswidthsizemode#fields) or [DisableResizing](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewrowheaderswidthsizemode#fields).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AutoResizeRowHeadersWidth(rowIndex, autoSizeMode)

Adjusts the width of the row headers based on the contents of the header in the specified row and using the specified size mode.

| Parameter        | Type                                                                                                                                                   | Description                                                                                                                                                               |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **rowIndex**     | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                                                                            | The index of the row header with the changed content.                                                                                                                     |
| **autoSizeMode** | [DataGridViewRowHeadersWidthSizeMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowheaderswidthsizemode) | One of the [DataGridViewRowHeadersWidthSizeMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowheaderswidthsizemode) values. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is not in the valid range of -1 (all rows) to the number of rows minus 1.
* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) *autoSizeMode* has the value [EnableResizing](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewrowheaderswidthsizemode#fields) or [DisableResizing](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewrowheaderswidthsizemode#fields)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AutoResizeRowHeadersWidth(rowIndex, autoSizeMode, extraSpace)

Adjusts the width of the row headers based on the contents of the header in the specified row and using the specified size mode.

| Parameter        | Type                                                                                                                                                   | Description                                                                                                                                                               |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **rowIndex**     | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                                                                            | The index of the row header with the changed content.                                                                                                                     |
| **autoSizeMode** | [DataGridViewRowHeadersWidthSizeMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowheaderswidthsizemode) | One of the [DataGridViewRowHeadersWidthSizeMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowheaderswidthsizemode) values. |
| **extraSpace**   | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                                                                            | Additional space in pixels.                                                                                                                                               |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is not in the valid range of -1 (all rows) to the number of rows minus 1.
* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) *autoSizeMode* has the value [EnableResizing](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewrowheaderswidthsizemode#fields) or [DisableResizing](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewrowheaderswidthsizemode#fields)

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AutoResizeRows()

Adjusts the heights of all rows in the client's data cache to fit the contents of all their cells, including the header cells.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AutoResizeRows(extraSpace)

Adjusts the heights of all rows in the client's data cache to fit the contents of all their cells, including the header cells.

| Parameter      | Type                                                        | Description                 |
| -------------- | ----------------------------------------------------------- | --------------------------- |
| **extraSpace** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | Additional space in pixels. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AutoResizeRows(autoSizeMode)

Adjusts the heights of the rows using the specified size mode.

| Parameter        | Type                                                                                                                                     | Description                                                                                                                                               |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **autoSizeMode** | [DataGridViewAutoSizeRowsMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewautosizerowsmode) | One of the [DataGridViewAutoSizeRowMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewautosizerowmode) values. |

**Throws:**

* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) *autoSizeMode* has the value [DoubleClick](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewautosizerowsmode#fields)
* [InvalidOperationException](https://docs.microsoft.com/dotnet/api/system.invalidoperationexception) *autoSizeMode* has the value [RowHeader](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewautosizerowsmode#fields) and [RowHeadersVisible](#rowheadersvisible) is false.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) BeginEdit(selectAll)

Puts the current cell in edit mode.

| Parameter                                                                                                                                                                                                                   | Type                                                            | Description                                                               |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- | ------------------------------------------------------------------------- |
| **selectAll** ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-723b640963c6cd781ff8c5ce5b24149fa0af7b9c%2Fbadge-optional.svg?alt=media) | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) | true to select all the cell's contents; false to not select any contents. |

**Returns:** [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean). true if the current cell is already in edit mode or successfully enters edit mode; otherwise, false.

**Throws:**

* [InvalidOperationException](https://docs.microsoft.com/dotnet/api/system.invalidoperationexception) [CurrentCell](#currentcell) is not set to a valid cell.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) BeginUpdate()

Prevents the control from updating until the [EndUpdate](#endupdate) method is called.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CancelEdit()

Cancels edit mode for the currently selected cell and discards any changes.

**Returns:** [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean). true if the cancel was successful; otherwise, false.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CanSort(sortColumn)

Returns whether the specified column can be sorted automatically.

| Parameter      | Type                                                                                                                 | Description          |
| -------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------- |
| **sortColumn** | [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) | Column being sorted. |

**Returns:** [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean). true if the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) should sort the data.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ClearSelection()

Clears the current selection.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CommitEdit()

Commits changes to cell without ending edit mode.

**Returns:** [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean). true if the changes were committed; otherwise false.

**Throws:**

* [Exception](https://docs.microsoft.com/dotnet/api/system.exception) The cell value could not be committed and either there is no handler for the [DataError](#dataerror) event or the handler has set the [ThrowException](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewdataerroreventargs#throwexception) property to true.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CreateDataBoundColumn(property, name)

Creates a new [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) bound to the specified *property* .

| Parameter    | Type                                                                                                 | Description                                   |
| ------------ | ---------------------------------------------------------------------------------------------------- | --------------------------------------------- |
| **property** | [PropertyDescriptor](https://docs.microsoft.com/dotnet/api/system.componentmodel.propertydescriptor) | Property bound this the column being created. |
| **name**     | [String](https://docs.microsoft.com/dotnet/api/system.string)                                        | Proposes safe name for the new column.        |

**Returns:** [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn).

Override this method to manage the automatic creation of data-bound columns. The default implementation calls [CreateDataGridViewColumnFromType](#createdatagridviewcolumnfromtype) using the [PropertyType](https://docs.microsoft.com/dotnet/api/system.componentmodel.propertydescriptor.propertytype) to create a compatible column.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CreateDataGridViewColumnFromType(type)

Creates a new [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) that matches the data field type.

| Parameter | Type                                                      | Description                                                      |
| --------- | --------------------------------------------------------- | ---------------------------------------------------------------- |
| **type**  | [Type](https://docs.microsoft.com/dotnet/api/system.type) | Type of the data field that will be displayed in the new column. |

**Returns:** [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn). New [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) compatible with the specified *type* .

Override this method to manage the automatic creation of data-bound columns.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CreateSummaryRow(group, summaryPosition, groupFromCol, groupToCol, style)

Invoked by all the [AddSummaryRows](#addsummaryrows-summarytype-groupcol-summarycol-style-customsummary) methods to create a new [DataGridViewSummaryRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow) in relation to the specified *group* .

| Parameter           | Type                                                                                                                       | Description                                                                                                                                                                                                                                  |
| ------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **group**           | [DataGridViewRow\[\]](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow)         | An array of the [DataGridViewRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow) summarized by the group row being created.                                                                    |
| **summaryPosition** | [SummaryRowPosition](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.summaryrowposition)       | The [SummaryRowPosition](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.summaryrowposition) indicated by the [AddSummaryRows](#addsummaryrows-summarytype-groupcol-summarycol-style-customsummary) method call. |
| **groupFromCol**    | [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn)       | The first [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) delimiting the group.                                                                                         |
| **groupToCol**      | [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn)       | The last [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) delimiting the group.                                                                                          |
| **style**           | [DataGridViewCellStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) | A [DataGridViewCellStyle](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) for the summary row; can be null.                                                                               |

**Returns:** [DataGridViewSummaryRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow).

Override this method to create a custom derived class from [DataGridViewSummaryRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) Dispose(disposing)

Disposes the control and all the owned columns.

| Parameter     | Type                                                            | Description                                                                 |
| ------------- | --------------------------------------------------------------- | --------------------------------------------------------------------------- |
| **disposing** | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) | true when this method is called by the application rather than a finalizer. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) EndEdit()

Commits and ends the edit operation on the current cell.

**Returns:** [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean). true if the edit operation is committed and ended; otherwise, false.

**Throws:**

* [Exception](https://docs.microsoft.com/dotnet/api/system.exception) The cell value could not be committed and either there is no handler for the [DataError](#dataerror) event or the handler has set the [ThrowException](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewdataerroreventargs#throwexception) property to true.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) EndUpdate()

Resumes updating of the control after it was suspended by the [BeginUpdate](#beginupdate) method.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Fill(data, dataMember)

Populates the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) from the *data* .

| Parameter                                                                                                                                                                                                                    | Type                                                          | Description                                                                                                                                                              |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **data**                                                                                                                                                                                                                     | [Object](https://docs.microsoft.com/dotnet/api/system.object) | The object that contains data for the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) to display.                                      |
| **dataMember** ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-723b640963c6cd781ff8c5ce5b24149fa0af7b9c%2Fbadge-optional.svg?alt=media) | [String](https://docs.microsoft.com/dotnet/api/system.string) | The name of the table or list in the *data* object for which the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) should load the data. |

**Returns:** [Int32](https://docs.microsoft.com/dotnet/api/system.int32). Numbers of rows added.

Use this method to fill a [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) without binding it to the data source.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) GetClipboardContent()

Returns the formatted values that represent the contents of the selected cells for copying to the [Clipboard](https://docs.wisej.com/api/wisej.web/general/wisej.web.clipboard).

**Returns:** [DataObject](https://docs.wisej.com/api/wisej.web/general/wisej.web.dataobject). A [DataObject](https://docs.wisej.com/api/wisej.web/general/wisej.web.dataobject) with the contents of the selected cells.

**Throws:**

* [NotSupportedException](https://docs.microsoft.com/dotnet/api/system.notsupportedexception) [ClipboardCopyMode](#clipboardcopymode) is set to [Disable](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewclipboardcopymode#fields).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) GetCommand(columnIndex, rowIndex)

Retrieves the command for the specified cell without retrieving a [DataGridViewRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow) and without causing the permanent creation of a row instance. This method is particularly useful when the grid shows a large data set and/or it's operating in [VirtualMode](#virtualmode).

| Parameter       | Type                                                        | Description                                  |
| --------------- | ----------------------------------------------------------- | -------------------------------------------- |
| **columnIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The index of the column containing the cell. |
| **rowIndex**    | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The index of the row containing the cell.    |

**Returns:** [ICommand](https://docs.wisej.com/api/wisej.web/interfaces/wisej.web.icommand). The object value stored in the cell.

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *columnIndex* is less than 0 or *columnIndex* is equal to or greater than the number of cells in the collection.
* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is less than 0.- or - *rowIndex* is equal to or greater than [Count](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewrowcollection#count).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) GetCommand(cellAddress)

Retrieves the command for the specified cell without retrieving a [DataGridViewRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow) and without causing the permanent creation of a row instance. This method is particularly useful when the grid shows a large data set and/or it's operating in [VirtualMode](#virtualmode).

| Parameter       | Type                                                                | Description                       |
| --------------- | ------------------------------------------------------------------- | --------------------------------- |
| **cellAddress** | [Point](https://docs.microsoft.com/dotnet/api/system.drawing.point) | Row and column index of the cell. |

**Returns:** [ICommand](https://docs.wisej.com/api/wisej.web/interfaces/wisej.web.icommand). The object value stored in the cell.

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *cellAddress* is less than 0 or equal to or greater than the number of row or columns in the collection.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) GetCommand(column, rowIndex)

Retrieves the command for the specified cell without retrieving a [DataGridViewRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow) and without causing the permanent creation of a row instance. This method is particularly useful when the grid shows a large data set and/or it's operating in [VirtualMode](#virtualmode).

| Parameter    | Type                                                                                                                 | Description                                                                                                                                      |
| ------------ | -------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| **column**   | [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) | The [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) that contains the cell. |
| **rowIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                                          | The index of the row containing the cell.                                                                                                        |

**Returns:** [ICommand](https://docs.wisej.com/api/wisej.web/interfaces/wisej.web.icommand). The object value stored in the cell.

**Throws:**

* [ArgumentNullException](https://docs.microsoft.com/dotnet/api/system.argumentnullexception) *column* is null.
* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) The specified *column* does not belong to the same [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) that owns the cells.
* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is less than 0.- or - *rowIndex* is equal to or greater than [Count](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewrowcollection#count).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) GetCommand(columnName, rowIndex)

Retrieves the command for the specified cell without retrieving a [DataGridViewRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow) and without causing the permanent creation of a row instance. This method is particularly useful when the grid shows a large data set and/or it's operating in [VirtualMode](#virtualmode).

| Parameter      | Type                                                          | Description                                                                                                                           |
| -------------- | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| **columnName** | [String](https://docs.microsoft.com/dotnet/api/system.string) | The [Name](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#name) of the column containing the cell. |
| **rowIndex**   | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)   | The index of the row containing the cell.                                                                                             |

**Returns:** [ICommand](https://docs.wisej.com/api/wisej.web/interfaces/wisej.web.icommand). The object value stored in the cell.

**Throws:**

* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) *columnName* does not match the name of any columns in the control.
* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is less than 0.- or - *rowIndex* is equal to or greater than [Count](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewrowcollection#count).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) GetFormattedValue(columnIndex, rowIndex)

Retrieves the value for the specified cell, as formatted for display, without retrieving a [DataGridViewRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow) and without causing the permanent creation of a row instance. This method is particularly useful when the grid shows a large data set and/or it's operating in [VirtualMode](#virtualmode).

| Parameter       | Type                                                        | Description                                  |
| --------------- | ----------------------------------------------------------- | -------------------------------------------- |
| **columnIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The index of the column containing the cell. |
| **rowIndex**    | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The index of the row containing the cell.    |

**Returns:** [Object](https://docs.microsoft.com/dotnet/api/system.object). The formatted value stored in the cell.

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *columnIndex* is less than 0 or *columnIndex* is equal to or greater than the number of cells in the collection.
* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is less than 0.- or - *rowIndex* is equal to or greater than [Count](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewrowcollection#count).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) GetFormattedValue(column, rowIndex)

Retrieves the value for the specified cell, as formatted for display, without retrieving a [DataGridViewRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow) and without causing the permanent creation of a row instance. This method is particularly useful when the grid shows a large data set and/or it's operating in [VirtualMode](#virtualmode).

| Parameter    | Type                                                                                                                 | Description                                                                                                                                      |
| ------------ | -------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| **column**   | [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) | The [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) that contains the cell. |
| **rowIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                                          | The index of the row containing the cell.                                                                                                        |

**Returns:** [Object](https://docs.microsoft.com/dotnet/api/system.object). The formatted value stored in the cell.

**Throws:**

* [ArgumentNullException](https://docs.microsoft.com/dotnet/api/system.argumentnullexception) *column* is null.
* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) The specified *column* does not belong to the same [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) that owns the cells.
* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is less than 0.- or - *rowIndex* is equal to or greater than [Count](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewrowcollection#count).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) GetFormattedValue(columnName, rowIndex)

Retrieves the value for the specified cell, as formatted for display, without retrieving a [DataGridViewRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow) and without causing the permanent creation of a row instance. This method is particularly useful when the grid shows a large data set and/or it's operating in [VirtualMode](#virtualmode).

| Parameter      | Type                                                          | Description                                                                                                                           |
| -------------- | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| **columnName** | [String](https://docs.microsoft.com/dotnet/api/system.string) | The [Name](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#name) of the column containing the cell. |
| **rowIndex**   | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)   | The index of the row containing the cell.                                                                                             |

**Returns:** [Object](https://docs.microsoft.com/dotnet/api/system.object). The formatted value stored in the cell.

**Throws:**

* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) *columnName* does not match the name of any columns in the control.
* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is less than 0.- or - *rowIndex* is equal to or greater than [Count](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewrowcollection#count).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) GetRowState(rowIndex)

Returns the state of the [DataGridViewRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow) at the specified index.

| Parameter    | Type                                                        | Description           |
| ------------ | ----------------------------------------------------------- | --------------------- |
| **rowIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The index of the row. |

**Returns:** [DataGridViewElementStates](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewelementstates). A combination of [DataGridViewElementStates](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewelementstates) values indicating the state of the row.

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is less than zero and greater than the number of rows in the collection.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) GetValue(columnIndex, rowIndex)

Retrieves the value for the specified cell without retrieving a [DataGridViewRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow) and without causing the permanent creation of a row instance. This method is particularly useful when the grid shows a large data set and/or it's operating in [VirtualMode](#virtualmode).

| Parameter       | Type                                                        | Description                                  |
| --------------- | ----------------------------------------------------------- | -------------------------------------------- |
| **columnIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The index of the column containing the cell. |
| **rowIndex**    | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The index of the row containing the cell.    |

**Returns:** [Object](https://docs.microsoft.com/dotnet/api/system.object). The object value stored in the cell.

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *columnIndex* is less than 0 or *columnIndex* is equal to or greater than the number of cells in the collection.
* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is less than 0.- or - *rowIndex* is equal to or greater than [Count](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewrowcollection#count).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) GetValue(cellAddress)

Retrieves the value for the specified cell without retrieving a [DataGridViewRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow) and without causing the permanent creation of a row instance. This method is particularly useful when the grid shows a large data set and/or it's operating in [VirtualMode](#virtualmode).

| Parameter       | Type                                                                | Description                       |
| --------------- | ------------------------------------------------------------------- | --------------------------------- |
| **cellAddress** | [Point](https://docs.microsoft.com/dotnet/api/system.drawing.point) | Row and column index of the cell. |

**Returns:** [Object](https://docs.microsoft.com/dotnet/api/system.object). The object value stored in the cell.

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *cellAddress* is less than 0 or equal to or greater than the number of row or columns in the collection.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) GetValue(column, rowIndex)

Retrieves the value for the specified cell without retrieving a [DataGridViewRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow) and without causing the permanent creation of a row instance. This method is particularly useful when the grid shows a large data set and/or it's operating in [VirtualMode](#virtualmode).

| Parameter    | Type                                                                                                                 | Description                                                                                                                                      |
| ------------ | -------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| **column**   | [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) | The [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) that contains the cell. |
| **rowIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                                          | The index of the row containing the cell.                                                                                                        |

**Returns:** [Object](https://docs.microsoft.com/dotnet/api/system.object). The object value stored in the cell.

**Throws:**

* [ArgumentNullException](https://docs.microsoft.com/dotnet/api/system.argumentnullexception) *column* is null.
* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) The specified *column* does not belong to the same [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) that owns the cells.
* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is less than 0.- or - *rowIndex* is equal to or greater than [Count](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewrowcollection#count).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) GetValue(columnName, rowIndex)

Retrieves the value for the specified cell without retrieving a [DataGridViewRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow) and without causing the permanent creation of a row instance. This method is particularly useful when the grid shows a large data set and/or it's operating in [VirtualMode](#virtualmode).

| Parameter      | Type                                                          | Description                                                                                                                           |
| -------------- | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| **columnName** | [String](https://docs.microsoft.com/dotnet/api/system.string) | The [Name](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#name) of the column containing the cell. |
| **rowIndex**   | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)   | The index of the row containing the cell.                                                                                             |

**Returns:** [Object](https://docs.microsoft.com/dotnet/api/system.object). The object value stored in the cell.

**Throws:**

* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) *columnName* does not match the name of any columns in the control.
* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is less than 0.- or - *rowIndex* is equal to or greater than [Count](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewrowcollection#count).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) HitTest(x, y)

Returns the column index and row index that contain the specified x, y client coordinates.

| Parameter | Type                                                        | Description                                                                                                                 |
| --------- | ----------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| **x**     | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The x coordinate relative to the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control. |
| **y**     | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The y coordinate relative to the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control. |

**Returns:** [HitTestInfo](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridview.hittestinfo). A [HitTestInfo](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridview.hittestinfo) that contains the column index and row index information.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) HitTest(position)

Returns the column index and row index that contain the specified x, y client coordinates.

| Parameter    | Type                                                                | Description                                                                                                                    |
| ------------ | ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| **position** | [Point](https://docs.microsoft.com/dotnet/api/system.drawing.point) | The x, y coordinate relative to the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control. |

**Returns:** [HitTestInfo](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridview.hittestinfo). A [HitTestInfo](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridview.hittestinfo) that contains the column index and row index information.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) IsCellEditable(cell)

Checks if the specified *cell* can enter edit mode.

| Parameter | Type                                                                                                             | Description     |
| --------- | ---------------------------------------------------------------------------------------------------------------- | --------------- |
| **cell**  | [DataGridViewCell](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcell) | Cell to verify. |

**Returns:** [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean). true is the specified cell, the owner row, owner column and the data source, allow user editing.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) IsCellEditable(colIndex, rowIndex)

Checks if the cell at the *colIndex* and *rowIndex* location can enter edit mode.

| Parameter    | Type                                                        | Description                             |
| ------------ | ----------------------------------------------------------- | --------------------------------------- |
| **colIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The column index of the cell to verify. |
| **rowIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The row index of the cell to verify.    |

**Returns:** [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean). true is the specified cell, the owner row, owner column and the data source, allow user editing.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) IsCellEditable(cellAddress)

Checks if the cell at the *cellAddress* location can enter edit mode.

| Parameter       | Type                                                                | Description                        |
| --------------- | ------------------------------------------------------------------- | ---------------------------------- |
| **cellAddress** | [Point](https://docs.microsoft.com/dotnet/api/system.drawing.point) | Coordinates of the cell to verify. |

**Returns:** [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean). true is the specified cell, the owner row, owner column and the data source, allow user editing.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) IsCellVisible(cell)

Checks if the specified *cell* is visible.

| Parameter | Type                                                                                                             | Description     |
| --------- | ---------------------------------------------------------------------------------------------------------------- | --------------- |
| **cell**  | [DataGridViewCell](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcell) | Cell to verify. |

**Returns:** [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean). true is the specified cell, the owner row, owner column and the data source, allow user editing.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) IsCellVisible(colIndex, rowIndex)

Checks if the cell at the *colIndex* and *rowIndex* location is visible.

| Parameter    | Type                                                        | Description                             |
| ------------ | ----------------------------------------------------------- | --------------------------------------- |
| **colIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The column index of the cell to verify. |
| **rowIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The row index of the cell to verify.    |

**Returns:** [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean). true is the specified cell, the owner row, owner column and the data source, allow user editing.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) IsCellVisible(cellAddress)

Checks if the cell at the *cellAddress* location is visible.

| Parameter       | Type                                                                | Description                        |
| --------------- | ------------------------------------------------------------------- | ---------------------------------- |
| **cellAddress** | [Point](https://docs.microsoft.com/dotnet/api/system.drawing.point) | Coordinates of the cell to verify. |

**Returns:** [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean). true is the specified cell, the owner row, owner column and the data source, allow user editing.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) IsValidCell(cellAddress)

Verifies that the cell address refers to a valid cell.

| Parameter       | Type                                                                | Description             |
| --------------- | ------------------------------------------------------------------- | ----------------------- |
| **cellAddress** | [Point](https://docs.microsoft.com/dotnet/api/system.drawing.point) | Cell address to verify. |

**Returns:** [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean). true if the coordinates correspond to a valid cell address.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) IsValidCell(colIndex, rowIndex)

Verifies that the column index and row index refer to a valid cell.

| Parameter    | Type                                                        | Description                        |
| ------------ | ----------------------------------------------------------- | ---------------------------------- |
| **colIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The index of the column to verify. |
| **rowIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The index of the row to verify.    |

**Returns:** [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean). true if the coordinates correspond to a valid cell address.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) IsValidColumn(colIndex)

Verifies that the column index refer to a valid column.

| Parameter    | Type                                                        | Description                        |
| ------------ | ----------------------------------------------------------- | ---------------------------------- |
| **colIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The index of the column to verify. |

**Returns:** [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean). true if the column index corresponds to a valid column.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) IsValidRow(rowIndex)

Verifies that the row index refer to a valid row.

| Parameter    | Type                                                        | Description                     |
| ------------ | ----------------------------------------------------------- | ------------------------------- |
| **rowIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The index of the row to verify. |

**Returns:** [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean). true if the row index corresponds to a valid row.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) NotifyCurrentCellDirty(dirty)

Notifies the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) that the current cell has uncommitted changes.

| Parameter | Type                                                            | Description                                                          |
| --------- | --------------------------------------------------------------- | -------------------------------------------------------------------- |
| **dirty** | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) | True to indicate the cell has uncommitted changes; otherwise, false. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnAddReferences(items)

Returns a collection of referenced components or collection of components.

| Parameter | Type                                                                    | Description |
| --------- | ----------------------------------------------------------------------- | ----------- |
| **items** | [IList](https://docs.microsoft.com/dotnet/api/system.collections.ilist) |             |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnAllowUserToAddRowsChanged(e)

Fires the [AllowUserToAddRowsChanged](#allowusertoaddrowschanged) event.

| Parameter | Type                                                                | Description                                                                                          |
| --------- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | An [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnAllowUserToDeleteRowsChanged(e)

Fires the [AllowUserToDeleteRowsChanged](#allowusertodeleterowschanged) event.

| Parameter | Type                                                                | Description                                                                                          |
| --------- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | An [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnAllowUserToOrderColumnsChanged(e)

Fires the [AllowUserToOrderColumnsChanged](#allowusertoordercolumnschanged) event.

| Parameter | Type                                                                | Description                                                                                         |
| --------- | ------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | A [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnAllowUserToResizeColumnsChanged(e)

Fires the [AllowUserToResizeColumnsChanged](#allowusertoresizecolumnschanged) event.

| Parameter | Type                                                                | Description                                                                                          |
| --------- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | An [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnAllowUserToResizeRowsChanged(e)

Fires the [AllowUserToResizeRowsChanged](#allowusertoresizerowschanged) event.

| Parameter | Type                                                                | Description                                                                                          |
| --------- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | An [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnAutoGenerateColumnsChanged(e)

Fires the [AutoGenerateColumnsChanged](#autogeneratecolumnschanged) event.

| Parameter | Type                                                                | Description                                                                                          |
| --------- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | An [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnBindingContextChanged(e)

Fires the [BindingContextChanged](https://docs.wisej.com/api/general/control#bindingcontextchanged) event.

| Parameter | Type                                                                | Description                                                                                          |
| --------- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | An [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellBeginEdit(e)

Fires the [CellBeginEdit](#cellbeginedit) event.

| Parameter | Type                                                                                                                                           | Description                                                                                                                                                                    |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [DataGridViewCellCancelEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellcanceleventargs) | A [DataGridViewCellCancelEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellcanceleventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#columnindex) property of *e* is less than zero or greater than the number of columns in the control, or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#rowindex) property of *e* is less than zero or greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellClick(e)

Fires the [CellClick](#cellclick) event.

| Parameter | Type                                                                                                                               | Description                                                                                                                                                        |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) | A [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#columnindex) property of *e* is greater than the number of columns in the control, or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#rowindex) property of *e* is greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellCommandChanged(e)

Fires the [CellCommandChanged](#cellcommandchanged) event.

| Parameter | Type                                                                                                                               | Description                                                                                                                                                        |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) | A [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#columnindex) property of *e* is greater than the number of columns in the control, or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#rowindex) property of *e* is greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellCommandNeeded(e)

Fires the [CellCommandNeeded](#cellcommandneeded) event.

| Parameter | Type                                                                                                                                             | Description                                                                                                                                                                      |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewCellCommandEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellcommandeventargs) | A [DataGridViewCellCommandEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellcommandeventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellcommandeventargs#columnindex) property of *e* is less than zero or greater than the number of columns in the control, or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellcommandeventargs#rowindex) property of *e* is less than zero or greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellCommandPushed(e)

Fires the [CellCommandPushed](#cellcommandpushed) event.

| Parameter | Type                                                                                                                                             | Description                                                                                                                                                                      |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewCellCommandEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellcommandeventargs) | A [DataGridViewCellCommandEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellcommandeventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellcommandeventargs#columnindex) property of *e* is less than zero or greater than the number of columns in the control, or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellcommandeventargs#rowindex) property of *e* is less than zero or greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellContextMenuNeeded(e)

Fires the [CellContextMenuNeeded](#cellcontextmenuneeded) event.

| Parameter | Type                                                                                                                                                                 | Description                                                                                                                                                                                          |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewCellContextMenuNeededEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellcontextmenuneededeventargs) | A [DataGridViewCellContextMenuNeededEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellcontextmenuneededeventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#columnindex) property of *e* is greater than the number of columns in the control, or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#rowindex) property of *e* is greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellDoubleClick(e)

Fires the [CellDoubleClick](#celldoubleclick) event.

| Parameter | Type                                                                                                                               | Description                                                                                                                                                        |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) | A [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#columnindex) property of *e* is greater than the number of columns in the control, or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#rowindex) property of *e* is greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellEndEdit(e)

Fires the [CellEndEdit](#cellendedit) event.

| Parameter | Type                                                                                                                               | Description                                                                                                                                                        |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) | A [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#columnindex) property of *e* is less than zero or greater than the number of columns in the control, or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#rowindex) property of *e* is less than zero or greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellEnter(e)

Fires the [CellEnter](#cellenter) event.

| Parameter | Type                                                                                                                               | Description                                                                                                                                                        |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) | A [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#columnindex) property of *e* is less than zero or greater than the number of columns in the control, or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#rowindex) property of *e* is less than zero or greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellErrorTextChanged(e)

Fires the [CellErrorTextChanged](#cellerrortextchanged) event.

| Parameter | Type                                                                                                                               | Description                                                                                                                                                        |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) | A [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcelleventargs#columnindex) property of *e* is less than -1 or greater than the number of columns in the control. Or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcelleventargs#rowindex) property of *e* is less than -1 or greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellErrorTextNeeded(e)

Fires the [CellErrorTextNeeded](#cellerrortextneeded) event.

| Parameter | Type                                                                                                                                                             | Description                                                                                                                                                                                      |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [DataGridViewCellErrorTextNeededEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellerrortextneededeventargs) | A [DataGridViewCellErrorTextNeededEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellerrortextneededeventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcelleventargs#columnindex) property of *e* is greater than the number of columns in the control minus one; or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcelleventargs#rowindex) property of *e* is greater than the number of rows in the control minus one.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellFormatting(e)

Fires the [CellFormatting](#cellformatting) event.

| Parameter | Type                                                                                                                                                   | Description                                                                                                                                                                            |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewCellFormattingEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellformattingeventargs) | A [DataGridViewCellFormattingEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellformattingeventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellformattingeventargs#columnindex) property of *e* is greater than the number of columns in the control, or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellformattingeventargs#rowindex) property of *e* is greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellLeave(e)

Fires the [CellLeave](#cellleave) event.

| Parameter | Type                                                                                                                               | Description                                                                                                                                                        |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) | A [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#columnindex) property of *e* is less than zero or greater than the number of columns in the control, or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#rowindex) property of *e* is less than zero or greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellMouseClick(e)

Fires the [CellMouseClick](#cellmouseclick) event.

| Parameter | Type                                                                                                                                         | Description                                                                                                                                                                  |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewCellMouseEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventargs) | A [DataGridViewCellMouseEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#columnindex) property of *e* is greater than the number of columns in the control, or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#rowindex) property of *e* is greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellMouseDoubleClick(e)

Fires the [CellMouseDoubleClick](#cellmousedoubleclick) event.

| Parameter | Type                                                                                                                                         | Description                                                                                                                                                                  |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewCellMouseEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventargs) | A [DataGridViewCellMouseEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellmouseeventargs#columnindex) property of *e* is greater than the number of columns in the control, or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellmouseeventargs#rowindex) property of *e* is greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellMouseDown(e)

Fires the [CellMouseDown](#cellmousedown) event.

| Parameter | Type                                                                                                                                         | Description                                                                                                                                                                  |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewCellMouseEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventargs) | A [DataGridViewCellMouseEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellmouseeventargs#columnindex) property of *e* is greater than the number of columns in the control, or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellmouseeventargs#rowindex) property of *e* is greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellMouseEnter(e)

Fires the [CellMouseEnter](#cellmouseenter) event.

| Parameter | Type                                                                                                                               | Description                                                                                                                                                        |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) | A [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) that contains the event data. |

This event fires only if there is an handler attached to it. A simple overload of the On\[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event. **Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellmouseeventargs#columnindex) property of *e* is greater than the number of columns in the control, or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellmouseeventargs#rowindex) property of *e* is greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellMouseLeave(e)

Fires the [CellMouseLeave](#cellmouseleave) event.

| Parameter | Type                                                                                                                               | Description                                                                                                                                                        |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) | A [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) that contains the event data. |

This event fires only if there is an handler attached to it. A simple overload of the On\[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event. **Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellmouseeventargs#columnindex) property of *e* is greater than the number of columns in the control, or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellmouseeventargs#rowindex) property of *e* is greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellMouseMove(e)

Fires the [CellMouseMove](#cellmousemove) event.

| Parameter | Type                                                                                                                                         | Description                                                                                                                                                                  |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewCellMouseEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventargs) | A [DataGridViewCellMouseEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventargs) that contains the event data. |

This event fires only if there is an handler attached to it. A simple overload of the On\[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event. **Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellmouseeventargs#columnindex) property of *e* is greater than the number of columns in the control, or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellmouseeventargs#rowindex) property of *e* is greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellMouseUp(e)

Fires the [CellMouseUp](#cellmouseup) event.

| Parameter | Type                                                                                                                                         | Description                                                                                                                                                                  |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewCellMouseEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventargs) | A [DataGridViewCellMouseEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellmouseeventargs#columnindex) property of *e* is greater than the number of columns in the control, or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellmouseeventargs#rowindex) property of *e* is greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellPaint(e)

Fires the [CellPaint](#cellpaint) event.

| Parameter | Type                                                                                                                                         | Description                                                                                                                                                                  |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewCellPaintEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellpainteventargs) | A [DataGridViewCellPaintEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellpainteventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellpainteventargs#columnindex) property of *e* is greater than the number of columns in the control; or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellpainteventargs#rowindex) property of *e* is greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellParsing(e)

Fires the [CellParsing](#cellparsing) event.

| Parameter | Type                                                                                                                                             | Description                                                                                                                                                                      |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewCellParsingEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellparsingeventargs) | A [DataGridViewCellParsingEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellparsingeventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#columnindex) property of *e* is less than zero or greater than the number of columns in the control, or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#rowindex) property of *e* is less than zero or greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellStateChanged(e)

Fires the [CellStateChanged](#cellstatechanged) event.

| Parameter | Type                                                                                                                                                       | Description                                                                                                                                                                                |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [DataGridViewCellStateChangedEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstatechangedeventargs) | A [DataGridViewCellStateChangedEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstatechangedeventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellStyleChanged(e)

Fires the [CellStyleChanged](#cellstylechanged) event.

| Parameter | Type                                                                                                                               | Description                                                                                                                                                        |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) | A [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcelleventargs#columnindex) property of *e* is greater than the number of columns in the control minus one; or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcelleventargs#rowindex) property of *e* is greater than the number of rows in the control minus one.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellStyleContentChanged(e)

Fires the [CellStyleContentChanged](#cellstylecontentchanged) event.

| Parameter | Type                                                                                                                                                                     | Description                                                                                                                                                                                              |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewCellStyleContentChangedEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstylecontentchangedeventargs) | A [DataGridViewCellStyleContentChangedEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstylecontentchangedeventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellToolClick(e)

Fires the ToolClick event.

| Parameter | Type                                                                                                                                         | Description                                                                                                                                                                  |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewToolClickEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewtoolclickeventargs) | A [DataGridViewToolClickEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewtoolclickeventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#columnindex) property of *e* is greater than the number of columns in the control, or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#rowindex) property of *e* is greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellToolTipTextChanged(e)

Fires the [CellToolTipTextChanged](#celltooltiptextchanged) event.

| Parameter | Type                                                                                                                               | Description                                                                                                                                                        |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) | A [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcelleventargs#columnindex) property of *e* is less than -1 or greater than the number of columns in the control. Or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcelleventargs#rowindex) property of *e* is less than -1 or greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellToolTipTextNeeded(e)

Fires the [CellToolTipTextNeeded](#celltooltiptextneeded) event.

| Parameter | Type                                                                                                                                                                 | Description                                                                                                                                                                                          |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewCellToolTipTextNeededEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelltooltiptextneededeventargs) | A [DataGridViewCellToolTipTextNeededEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelltooltiptextneededeventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcelleventargs#columnindex) property of *e* is greater than the number of columns in the control minus one; or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcelleventargs#rowindex) property of *e* is greater than the number of rows in the control minus one.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellValidated(e)

Fires the [CellValidated](#cellvalidated) event.

| Parameter | Type                                                                                                                               | Description                                                                                                                                                        |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) | A [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#columnindex) property of *e* is less than zero or greater than the number of columns in the control, or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#rowindex) property of *e* is less than zero or greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellValidating(e)

Fires the [CellValidating](#cellvalidating) event.

| Parameter | Type                                                                                                                                                   | Description                                                                                                                                                                            |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewCellValidatingEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellvalidatingeventargs) | A [DataGridViewCellValidatingEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellvalidatingeventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#columnindex) property of *e* is less than zero or greater than the number of columns in the control, or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#rowindex) property of *e* is less than zero or greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellValueChanged(e)

Fires the [CellValueChanged](#cellvaluechanged) event.

| Parameter | Type                                                                                                                               | Description                                                                                                                                                        |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) | A [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#columnindex) property of *e* is greater than the number of columns in the control, or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#rowindex) property of *e* is greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellValueNeeded(e)

Fires the [CellValueNeeded](#cellvalueneeded) event.

| Parameter | Type                                                                                                                                         | Description                                                                                                                                                                  |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewCellValueEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellvalueeventargs) | A [DataGridViewCellValueEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellvalueeventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#columnindex) property of *e* is less than zero or greater than the number of columns in the control, or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#rowindex) property of *e* is less than zero or greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCellValuePushed(e)

Fires the [CellValuePushed](#cellvaluepushed) event.

| Parameter | Type                                                                                                                                         | Description                                                                                                                                                                  |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewCellValueEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellvalueeventargs) | A [DataGridViewCellValueEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellvalueeventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#columnindex) property of *e* is less than zero or greater than the number of columns in the control, or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#rowindex) property of *e* is less than zero or greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnColumnAdded(e)

Raises the [ColumnAdded](#columnadded) event.

| Parameter | Type                                                                                                                                   | Description                                                                                                                                                            |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewColumnEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventargs) | A [DataGridViewColumnEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventargs) that contains the event data. |

**Throws:**

* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) The column indicated by the [Column](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumneventargs#column) property of *e* does not belong to this [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnColumnDisplayIndexChanged(e)

Fires the [ColumnDisplayIndexChanged](#columndisplayindexchanged) event.

| Parameter | Type                                                                                                                                   | Description                                                                                                                                                            |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewColumnEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventargs) | A [DataGridViewColumnEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventargs) that contains the event data. |

**Throws:**

* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) The column indicated by the [Column](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumneventargs#column) property of *e* does not belong to this [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnColumnFillWeightChanged(e)

Raises the [ColumnFillWeightChanged](#columnfillweightchanged) event.

| Parameter | Type                                                                                                                                   | Description                                                                                                                                                            |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewColumnEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventargs) | A [DataGridViewColumnEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventargs) that contains the event data. |

**Throws:**

* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) The column indicated by the [Column](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumneventargs#column) property of *e* does not belong to this [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnColumnHeaderMouseClick(e)

Fires the [ColumnHeaderMouseClick](#columnheadermouseclick) event.

| Parameter | Type                                                                                                                                         | Description                                                                                                                                                                  |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewCellMouseEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventargs) | A [DataGridViewCellMouseEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellmouseeventargs#columnindex) property of *e* is less than zero or greater than the number of columns in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnColumnHeaderMouseDoubleClick(e)

Fires the [ColumnHeaderMouseDoubleClick](#columnheadermousedoubleclick) event.

| Parameter | Type                                                                                                                                         | Description                                                                                                                                                                                                                    |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [DataGridViewCellMouseEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventargs) | A [DataGridViewCellMouseEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventargs) that contains information about the cell and the position of the mouse pointer. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellmouseeventargs#columnindex) property of *e* is less than zero or greater than the number of columns in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnColumnHeadersHeightChanged(e)

Fires the [ColumnHeadersHeightChanged](#columnheadersheightchanged) event.

| Parameter | Type                                                                | Description                                                                                          |
| --------- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | An [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnColumnMaximumWidthChanged(e)

Fires the [ColumnMaximumWidthChanged](#columnmaximumwidthchanged) event.

| Parameter | Type                                                                                                                                   | Description                                                                                                                                                            |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewColumnEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventargs) | A [DataGridViewColumnEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnColumnMinimumWidthChanged(e)

Fires the [ColumnMinimumWidthChanged](#columnminimumwidthchanged) event.

| Parameter | Type                                                                                                                                   | Description                                                                                                                                                            |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewColumnEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventargs) | A [DataGridViewColumnEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnColumnNameChanged(e)

Raises the [ColumnNameChanged](#columnnamechanged) event.

| Parameter | Type                                                                                                                                   | Description                                                                                                                                                            |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewColumnEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventargs) | A [DataGridViewColumnEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventargs) that contains the event data. |

**Throws:**

* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) The column indicated by the [Column](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumneventargs#column) property of *e* does not belong to this [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnColumnRemoved(e)

Fires the [ColumnRemoved](#columnremoved) event.

| Parameter | Type                                                                                                                                   | Description                                                                                                                                                            |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewColumnEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventargs) | A [DataGridViewColumnEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnColumnSortModeChanged(e)

Fires the [ColumnSortModeChanged](#columnsortmodechanged) event.

| Parameter | Type                                                                                                                                   | Description                                                                                                                                                            |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewColumnEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventargs) | A [DataGridViewColumnEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnColumnStateChanged(e)

Fires the [ColumnStateChanged](#columnstatechanged) event.

| Parameter | Type                                                                                                                                                           | Description                                                                                                                                                                                    |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewColumnStateChangedEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumnstatechangedeventargs) | A [DataGridViewColumnStateChangedEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumnstatechangedeventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnColumnWidthChanged(e)

Raises the [ColumnWidthChanged](#columnwidthchanged) event.

| Parameter | Type                                                                                                                                   | Description                                                                                                                                                            |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewColumnEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventargs) | A [DataGridViewColumnEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventargs) that contains the event data. |

**Throws:**

* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) The column indicated by the [Column](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumneventargs#column) property of *e* does not belong to this [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnControlAdded(e)

Fires the [ControlAdded](https://docs.wisej.com/api/general/control#controladded) event.

| Parameter | Type                                                                                                | Description                                                                                                                         |
| --------- | --------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [ControlEventArgs](https://docs.wisej.com/api/wisej.web/general/control/wisej.web.controleventargs) | A [ControlEventArgs](https://docs.wisej.com/api/wisej.web/general/control/wisej.web.controleventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnControlCreated(e)

Fires the [ControlCreated](https://docs.wisej.com/api/general/control#controlcreated) event.

| Parameter | Type                                                                | Description                                                                                         |
| --------- | ------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | A [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnControlRemoved(e)

Fires the [ControlRemoved](https://docs.wisej.com/api/general/control#controlremoved) event.

| Parameter | Type                                                                                                | Description                                                                                                                         |
| --------- | --------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [ControlEventArgs](https://docs.wisej.com/api/wisej.web/general/control/wisej.web.controleventargs) | A [ControlEventArgs](https://docs.wisej.com/api/wisej.web/general/control/wisej.web.controleventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnCurrentCellChanged(e)

Fires the [CurrentCellChanged](#currentcellchanged) event.

| Parameter | Type                                                                | Description                                                                                          |
| --------- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | An [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnDataBindingComplete(e)

Fires the [DataBindingComplete](#databindingcomplete) event.

| Parameter | Type                                                                                                                                                     | Description                                                                                                                                                                              |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewBindingCompleteEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewbindingcompleteeventargs) | A [DataGridViewBindingCompleteEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewbindingcompleteeventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnDataError(e)

Fires the [DataError](#dataerror) event.

| Parameter | Type                                                                                                                                         | Description                                                                                                                                                                  |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewDataErrorEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewdataerroreventargs) | A [DataGridViewDataErrorEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewdataerroreventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnDataError(displayErrorIfNoHandler, e)

Fires the [DataError](#dataerror) event.

| Parameter                   | Type                                                                                                                                         | Description                                                                                                                                                                  |
| --------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **displayErrorIfNoHandler** | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean)                                                                              | true to display an error dialog box if there is no handler for the [DataError](#dataerror) event.                                                                            |
| **e**                       | [DataGridViewDataErrorEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewdataerroreventargs) | A [DataGridViewDataErrorEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewdataerroreventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnDataMemberChanged(e)

Fires the [DataMemberChanged](#datamemberchanged) event.

| Parameter | Type                                                                | Description                                                                                          |
| --------- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | An [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnDataRead(e)

Fires the [DataRead](#dataread) event.

| Parameter | Type                                                                                                                                       | Description |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ----------- |
| **e**     | [DataGridViewDataReadEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewdatareadeventargs) | Event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnDataSourceChanged(e)

Fires the [DataSourceChanged](#datasourcechanged) event.

| Parameter | Type                                                                | Description                                                                                          |
| --------- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | An [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnDataUpdated(e)

Fires the [DataUpdated](#dataupdated) event.

| Parameter | Type                                                                                                                                             | Description                                                                                                                                                                      |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewDataUpdatedEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewdataupdatedeventargs) | A [DataGridViewDataUpdatedEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewdataupdatedeventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnDefaultCellStyleChanged(e)

Fires the [DefaultCellStyleChanged](#defaultcellstylechanged) event.

| Parameter | Type                                                                | Description                                                                                         |
| --------- | ------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | A [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnDefaultRowHeightChanged(e)

Fires the [DefaultRowHeightChanged](#defaultrowheightchanged) event.

| Parameter | Type                                                                | Description                                                                                          |
| --------- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | An [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnDefaultValuesNeeded(e)

Fires the [DefaultValuesNeeded](#defaultvaluesneeded) event.

| Parameter | Type                                                                                                                             | Description                                                                                                                                                      |
| --------- | -------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewRowEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventargs) | A [DataGridViewRowEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnEditingControlShowing(e)

Fires the [EditingControlShowing](#editingcontrolshowing) event.

| Parameter | Type                                                                                                                                                                 | Description                                                                                                                                                                                                                 |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewEditingControlShowingEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridvieweditingcontrolshowingeventargs) | A [DataGridViewEditingControlShowingEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridvieweditingcontrolshowingeventargs) that contains information about the editing control. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnEditModeChanged(e)

Fires the [EditModeChanged](#editmodechanged) event.

| Parameter | Type                                                                | Description                                                                                          |
| --------- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | An [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnEnter(e)

Fires the [Enter](https://docs.wisej.com/api/general/control#enter) event.

| Parameter | Type                                                                | Description                                                                                          |
| --------- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | An [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnKeyDown(e)

Fires the [KeyDown](https://docs.wisej.com/api/general/control#keydown) event.

| Parameter | Type                                                                                        | Description                                                                                                                 |
| --------- | ------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [KeyEventArgs](https://docs.wisej.com/api/wisej.web/general/control/wisej.web.keyeventargs) | A [KeyEventArgs](https://docs.wisej.com/api/wisej.web/general/control/wisej.web.keyeventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnLastCellTab(e)

Fires the LastCellTab event.

| Parameter | Type                                                                                                                               | Description                                                                                                                                                        |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) | A [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#columnindex) property of *e* is greater than the number of columns in the control, or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellvalueeventargs#rowindex) property of *e* is greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnLeave(e)

Fires the [Leave](https://docs.wisej.com/api/general/control#leave) event.

| Parameter | Type                                                                | Description                                                                                          |
| --------- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | An [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnMouseUp(e)

Fires the [MouseUp](https://docs.wisej.com/api/general/control#mouseup) event.

| Parameter | Type                                                                                            | Description                                                                                                                     |
| --------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [MouseEventArgs](https://docs.wisej.com/api/wisej.web/general/control/wisej.web.mouseeventargs) | A [MouseEventArgs](https://docs.wisej.com/api/wisej.web/general/control/wisej.web.mouseeventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnMultiSelectChanged(e)

Fires the [MultiSelectChanged](#multiselectchanged) event.

| Parameter | Type                                                                | Description                                                                                          |
| --------- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | An [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnNewRowNeeded(e)

Raises the [NewRowNeeded](#newrowneeded) event.

| Parameter | Type                                                                                                                             | Description                                                                                                                                                      |
| --------- | -------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewRowEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventargs) | A [DataGridViewRowEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnReadOnlyChanged(e)

Fires the [ReadOnlyChanged](#readonlychanged) event.

| Parameter | Type                                                                | Description                                                                                          |
| --------- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | An [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. |

**Throws:**

* [InvalidCastException](https://docs.microsoft.com/dotnet/api/system.invalidcastexception) The control changed from read-only to read/write, enabling the current cell to enter edit mode, but the [EditType](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcell#edittype) property of the current cell does not indicate a class that derives from [Control](https://docs.wisej.com/api/wisej.web/general/control) and implements [IDataGridViewEditingControl](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.idatagridvieweditingcontrol).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnRowCollapsed(e)

Fires the RowExpanded event.

| Parameter | Type                                                                                                                             | Description                                                                                                                                                      |
| --------- | -------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewRowEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventargs) | A [DataGridViewRowEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewroweventargs#rowindex) property of *e* is greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnRowEnter(e)

Fires the [RowEnter](#rowenter) event.

| Parameter | Type                                                                                                                               | Description                                                                                                                                                        |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) | A [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnRowErrorTextChanged(e)

Fires the [RowErrorTextChanged](#rowerrortextchanged) event.

| Parameter | Type                                                                                                                             | Description                                                                                                                                                      |
| --------- | -------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewRowEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventargs) | A [DataGridViewRowEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnRowErrorTextNeeded(e)

Fires the [RowErrorTextNeeded](#rowerrortextneeded) event.

| Parameter | Type                                                                                                                                                           | Description                                                                                                                                                                                    |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewRowErrorTextNeededEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowerrortextneededeventargs) | A [DataGridViewRowErrorTextNeededEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowerrortextneededeventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnRowExpanded(e)

Fires the RowExpanded event.

| Parameter | Type                                                                                                                             | Description                                                                                                                                                      |
| --------- | -------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewRowEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventargs) | A [DataGridViewRowEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewroweventargs#rowindex) property of *e* is greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnRowHeaderMouseClick(e)

Fires the [RowHeaderMouseClick](#rowheadermouseclick) event.

| Parameter | Type                                                                                                                                         | Description                                                                                                                                                                                                                    |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [DataGridViewCellMouseEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventargs) | A [DataGridViewCellMouseEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventargs) that contains information about the mouse and the header cell that was clicked. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnRowHeaderMouseDoubleClick(e)

Fires the [RowHeaderMouseDoubleClick](#rowheadermousedoubleclick) event.

| Parameter | Type                                                                                                                                         | Description                                                                                                                                                                                                                           |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewCellMouseEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventargs) | A [DataGridViewCellMouseEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventargs) that contains information about the mouse and the header cell that was double-clicked. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellmouseeventargs#rowindex) property of *e* is greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnRowHeadersWidthChanged(e)

Fires the [RowHeadersWidthChanged](#rowheaderswidthchanged) event.

| Parameter | Type                                                                | Description                                                                                         |
| --------- | ------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | A [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnRowHeightChanged(e)

Raises the [RowHeightChanged](#rowheightchanged) event.

| Parameter | Type                                                                                                                             | Description                                                                                                                                                      |
| --------- | -------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewRowEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventargs) | A [DataGridViewRowEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnRowHeightInfoNeeded(e)

Fires the [RowHeightInfoNeeded](#rowheightinfoneeded) event.

| Parameter | Type                                                                                                                                                             | Description                                                                                                                                                                                      |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [DataGridViewRowHeightInfoNeededEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowheightinfoneededeventargs) | A [DataGridViewRowHeightInfoNeededEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowheightinfoneededeventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnRowLeave(e)

Fires the [RowLeave](#rowleave) event.

| Parameter | Type                                                                                                                               | Description                                                                                                                                                        |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) | A [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnRowMaximumHeightChanged(e)

Fires the [RowMaximumHeightChanged](#rowmaximumheightchanged) event.

| Parameter | Type                                                                                                                             | Description                                                                                                                                                      |
| --------- | -------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewRowEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventargs) | A [DataGridViewRowEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnRowMinimumHeightChanged(e)

Fires the [RowMinimumHeightChanged](#rowminimumheightchanged) event.

| Parameter | Type                                                                                                                             | Description                                                                                                                                                      |
| --------- | -------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewRowEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventargs) | A [DataGridViewRowEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnRowsAdded(e)

Fires the [RowsAdded](#rowsadded) event.

| Parameter | Type                                                                                                                                         | Description                                                                                                                                                                                    |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewRowsAddedEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowsaddedeventargs) | A [DataGridViewRowsAddedEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowsaddedeventargs) that contains information about the added rows. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnRowsRemoved(e)

Fires the [RowsRemoved](#rowsremoved) event.

| Parameter | Type                                                                                                                                             | Description                                                                                                                                                                                          |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewRowsRemovedEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowsremovedeventargs) | A [DataGridViewRowsRemovedEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowsremovedeventargs) that contains information about the deleted rows. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnRowStateChanged(e)

Fires the [RowStateChanged](#rowstatechanged) event.

| Parameter | Type                                                                                                                                                     | Description                                                                                                                                                                              |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewRowStateChangedEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowstatechangedeventargs) | A [DataGridViewRowStateChangedEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowstatechangedeventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnRowValidated(e)

Fires the [RowValidated](#rowvalidated) event.

| Parameter | Type                                                                                                                               | Description                                                                                                                                                        |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) | A [DataGridViewCellEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnRowValidating(e)

Fires the [RowValidating](#rowvalidating) event.

| Parameter | Type                                                                                                                                           | Description                                                                                                                                                                    |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [DataGridViewCellCancelEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellcanceleventargs) | A [DataGridViewCellCancelEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellcanceleventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnScroll(e)

Fires the [Scroll](#scroll) event.

| Parameter | Type                                                                                                | Description                                                                                                                         |
| --------- | --------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [ScrollEventArgs](https://docs.wisej.com/api/wisej.web/content/scrollbar/wisej.web.scrolleventargs) | A [ScrollEventArgs](https://docs.wisej.com/api/wisej.web/content/scrollbar/wisej.web.scrolleventargs) that contains the event data. |

This event fires only if there is an handler attached to it. A simple overload of the On\[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnSelectionChanged(e)

Fires the [SelectionChanged](#selectionchanged) event.

| Parameter | Type                                                                | Description                                                                                                       |
| --------- | ------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | An [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains information about the event. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnSortCompare(e)

Fires the [SortCompare](#sortcompare) event.

| Parameter | Type                                                                                                                                             | Description                                                                                                                                                                      |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewSortCompareEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsortcompareeventargs) | A [DataGridViewSortCompareEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsortcompareeventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnSorted(e)

Fires the [Sorted](#sorted) event.

| Parameter | Type                                                                | Description                                                                                          |
| --------- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| **e**     | [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) | An [EventArgs](https://docs.microsoft.com/dotnet/api/system.eventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnToolClick(e)

Fires the ToolClick event.

| Parameter | Type                                                                                            | Description                                                                                                                     |
| --------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [ToolClickEventArgs](https://docs.wisej.com/api/wisej.web/editors/wisej.web.toolclickeventargs) | A [ToolClickEventArgs](https://docs.wisej.com/api/wisej.web/editors/wisej.web.toolclickeventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) OnTopLeftHeaderClick(e)

Fires the [TopLeftHeaderClick](#topleftheaderclick) event, if [MultiSelect](#multiselect) is true, selects all the rows in the control.

| Parameter | Type                                                                                                                                           | Description                                                                                                                                                                  |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewCellCancelEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellcanceleventargs) | A [DataGridViewCellMouseEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellmouseeventargs#columnindex) property of *e* is greater than the number of columns in the control, or the value of the [RowIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcellmouseeventargs#rowindex) property of *e* is greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnUserAddedRow(e)

Fires the [UserAddedRow](#useraddedrow) event.

| Parameter | Type                                                                                                                             | Description                                                                                                                                                      |
| --------- | -------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewRowEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventargs) | A [DataGridViewRowEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnUserDeletedRow(e)

Fires the [UserDeletedRow](#userdeletedrow) event.

| Parameter | Type                                                                                                                             | Description                                                                                                                                                      |
| --------- | -------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewRowEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventargs) | A [DataGridViewRowEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnUserDeletingRow(e)

Fires the [UserDeletingRow](#userdeletingrow) event.

| Parameter | Type                                                                                                                                         | Description                                                                                                                                                                  |
| --------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **e**     | [DataGridViewRowCancelEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowcanceleventargs) | A [DataGridViewRowCancelEventArgs](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowcanceleventargs) that contains the event data. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnValidating(e)

Process the [Validating](https://docs.wisej.com/api/general/control#validating) event on the current cell and pass the event invocation back to the grid.

| Parameter | Type                                                                                           | Description                                                                                                                    |
| --------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| **e**     | [CancelEventArgs](https://docs.microsoft.com/dotnet/api/system.componentmodel.canceleventargs) | A [CancelEventArgs](https://docs.microsoft.com/dotnet/api/system.componentmodel.canceleventargs) that contains the event data. |

**Throws:**

* [Exception](https://docs.microsoft.com/dotnet/api/system.exception) Validation failed and there is no handler for the [DataError](#dataerror) event or the handler has set the [ThrowException](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewdataerroreventargs#throwexception) property to true.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnWebDataCount()

Returns the number of available data rows.

**Returns:** [Int32](https://docs.microsoft.com/dotnet/api/system.int32).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnWebDataRead(firstIndex, lastIndex, sortDirection, sortIndex)

Returns the data requested by the client.

| Parameter         | Type                                                                                               | Description                                                             |
| ----------------- | -------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| **firstIndex**    | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                        | The index of the first requested row.                                   |
| **lastIndex**     | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                        | The index of the last requested row.                                    |
| **sortDirection** | [ListSortDirection](https://docs.microsoft.com/dotnet/api/system.componentmodel.listsortdirection) | The sort direction.                                                     |
| **sortIndex**     | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                        | The index of the sorted column. Can be -1 if there is no sorted column. |

**Returns:** [Object](https://docs.microsoft.com/dotnet/api/system.object).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnWebEvent(e)

Processes the event from the client.

| Parameter | Type                                                                           | Description      |
| --------- | ------------------------------------------------------------------------------ | ---------------- |
| **e**     | [WisejEventArgs](https://docs.wisej.com/api/wisej.core/general/wisejeventargs) | Event arguments. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnWebRender(config)

Renders the client component.

| Parameter  | Type                                                          | Description                   |
| ---------- | ------------------------------------------------------------- | ----------------------------- |
| **config** | [Object](https://docs.microsoft.com/dotnet/api/system.object) | Dynamic configuration object. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) OnWebUpdate(state)

Updates the client component using the state information.

| Parameter | Type                                                          | Description           |
| --------- | ------------------------------------------------------------- | --------------------- |
| **state** | [Object](https://docs.microsoft.com/dotnet/api/system.object) | Dynamic state object. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) ProcessDialogKey(keyData)

Processes a dialog key.

| Parameter   | Type                                                                     | Description                                                                                                                    |
| ----------- | ------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
| **keyData** | [Keys](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.keys) | One of the [Keys](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.keys) values that represents the key to process. |

**Returns:** [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean). true if the key was processed by the control; otherwise, false.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Refresh()

Forces a full reload of the data displayed by this [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Refresh(refreshChildren)

Forces a full reload of the data displayed by this [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview).

| Parameter           | Type                                                            | Description                                            |
| ------------------- | --------------------------------------------------------------- | ------------------------------------------------------ |
| **refreshChildren** | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) | True to also refresh all the children of this control. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RemoveSummaryRows()

Removes the all the summary rows.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RemoveSummaryRows(summaryPosition)

Removes the summary rows that match the specified *summaryPosition* .

| Parameter           | Type                                                                                                                 | Description                             |
| ------------------- | -------------------------------------------------------------------------------------------------------------------- | --------------------------------------- |
| **summaryPosition** | [SummaryRowPosition](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.summaryrowposition) | Position of the summary rows to remove. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RemoveSummaryRows(groupFromCol)

Removes the summary rows grouped by *groupFromCol* .

| Parameter        | Type                                                          | Description                                                      |
| ---------------- | ------------------------------------------------------------- | ---------------------------------------------------------------- |
| **groupFromCol** | [String](https://docs.microsoft.com/dotnet/api/system.string) | Name of the first column that determines the group break values. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RemoveSummaryRows(groupFromCol, groupToCol)

Removes the summary rows grouped by *groupFromCol* and *groupToCol* .

| Parameter        | Type                                                          | Description                                                      |
| ---------------- | ------------------------------------------------------------- | ---------------------------------------------------------------- |
| **groupFromCol** | [String](https://docs.microsoft.com/dotnet/api/system.string) | Name of the first column that determines the group break values. |
| **groupToCol**   | [String](https://docs.microsoft.com/dotnet/api/system.string) | Name of the last column that determines the group break values.  |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RemoveSummaryRows(groupFromCol)

Removes the summary rows grouped by *groupFromCol* .

| Parameter        | Type                                                                                                                 | Description                                          |
| ---------------- | -------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- |
| **groupFromCol** | [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) | First column that determines the group break values. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RemoveSummaryRows(groupFromCol, groupToCol)

Removes the summary rows grouped by *groupFromCol* and *groupToCol* .

| Parameter        | Type                                                                                                                 | Description                                          |
| ---------------- | -------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- |
| **groupFromCol** | [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) | First column that determines the group break values. |
| **groupToCol**   | [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) | Last column that determines the group break values.  |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RemoveSummaryRows(summaryPosition, groupFromCol)

Removes the summary rows that match the specified *summaryPosition* and grouped by *groupFromCol* .

| Parameter           | Type                                                                                                                 | Description                                                      |
| ------------------- | -------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| **summaryPosition** | [SummaryRowPosition](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.summaryrowposition) | Position of the summary rows to remove.                          |
| **groupFromCol**    | [String](https://docs.microsoft.com/dotnet/api/system.string)                                                        | Name of the first column that determines the group break values. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RemoveSummaryRows(summaryPosition, groupFromCol, groupToCol)

Removes the summary rows that match the specified *summaryPosition* and grouped by *groupFromCol* and *groupToCol* .

| Parameter           | Type                                                                                                                 | Description                                                      |
| ------------------- | -------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| **summaryPosition** | [SummaryRowPosition](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.summaryrowposition) | Position of the summary rows to remove.                          |
| **groupFromCol**    | [String](https://docs.microsoft.com/dotnet/api/system.string)                                                        | Name of the first column that determines the group break values. |
| **groupToCol**      | [String](https://docs.microsoft.com/dotnet/api/system.string)                                                        | Name of the last column that determines the group break values.  |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RemoveSummaryRows(summaryPosition, groupFromCol, groupToCol)

Removes the summary rows that match the specified *summaryPosition* and grouped by *groupFromCol* and *groupToCol* .

| Parameter           | Type                                                                                                                 | Description                                          |
| ------------------- | -------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- |
| **summaryPosition** | [SummaryRowPosition](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.summaryrowposition) | Position of the summary rows to remove.              |
| **groupFromCol**    | [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) | First column that determines the group break values. |
| **groupToCol**      | [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) | Last column that determines the group break values.  |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ScrollCellIntoView(cell)

Scrolls the specified cell into view.

| Parameter | Type                                                                                                             | Description                                                                                                                               |
| --------- | ---------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| **cell**  | [DataGridViewCell](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcell) | The [DataGridViewCell](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcell) to scroll into view. |

**Throws:**

* [ArgumentNullException](https://docs.microsoft.com/dotnet/api/system.argumentnullexception) *cell* is null.
* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) *cell* doesn't belong to this [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ScrollCellIntoView(cell, alignX, alignY)

Scrolls the specified cell into view aligned according to the position specified by *alignX* and *alignY* , if possible.

| Parameter  | Type                                                                                                             | Description                                                                                                                                                                                                                         |
| ---------- | ---------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **cell**   | [DataGridViewCell](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcell) | The [DataGridViewCell](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcell) to scroll into view.                                                                                           |
| **alignX** | [Position](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.position)                                 | One of [Left](https://docs.wisej.com/api/enumerations/wisej.web.position#fields) or [Right](https://docs.wisej.com/api/enumerations/wisej.web.position#fields). Any other value is ignored and will use the least-effort alignment. |
| **alignY** | [Position](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.position)                                 | One of [Top](https://docs.wisej.com/api/enumerations/wisej.web.position#fields) or [Bottom](https://docs.wisej.com/api/enumerations/wisej.web.position#fields). Any other value is ignored and will use the least-effort alignment. |

**Throws:**

* [ArgumentNullException](https://docs.microsoft.com/dotnet/api/system.argumentnullexception) *cell* is null.
* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) *cell* doesn't belong to this [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ScrollCellIntoView(cellAddress)

Scrolls the specified cell into view.

| Parameter       | Type                                                                | Description                                  |
| --------------- | ------------------------------------------------------------------- | -------------------------------------------- |
| **cellAddress** | [Point](https://docs.microsoft.com/dotnet/api/system.drawing.point) | The address of the cell to scroll into view. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *cellAddress* .X is less than -1 or greater than the number of columns in the control, or *cellAddress* .Y is less than -1 or greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ScrollCellIntoView(cellAddress, alignX, alignY)

Scrolls the specified cell into view aligned according to the position specified by *alignX* and *alignY* , if possible.

| Parameter       | Type                                                                             | Description                                                                                                                                                                                                                         |
| --------------- | -------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **cellAddress** | [Point](https://docs.microsoft.com/dotnet/api/system.drawing.point)              | The address of the cell to scroll into view.                                                                                                                                                                                        |
| **alignX**      | [Position](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.position) | One of [Left](https://docs.wisej.com/api/enumerations/wisej.web.position#fields) or [Right](https://docs.wisej.com/api/enumerations/wisej.web.position#fields). Any other value is ignored and will use the least-effort alignment. |
| **alignY**      | [Position](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.position) | One of [Top](https://docs.wisej.com/api/enumerations/wisej.web.position#fields) or [Bottom](https://docs.wisej.com/api/enumerations/wisej.web.position#fields). Any other value is ignored and will use the least-effort alignment. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *cellAddress* .X is less than -1 or greater than the number of columns in the control, or *cellAddress* .Y is less than -1 or greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ScrollCellIntoView(columnIndex, rowIndex)

Scrolls the specified cell into view.

| Parameter       | Type                                                        | Description                                                  |
| --------------- | ----------------------------------------------------------- | ------------------------------------------------------------ |
| **columnIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The zero-based column index of the cell to scroll into view. |
| **rowIndex**    | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The zero-based row index of the cell to scroll into view.    |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *columnIndex* is less than -1 or greater than the number of columns in the control, or *rowIndex* is less than -1 or greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ScrollCellIntoView(columnIndex, rowIndex, alignX, alignY)

Scrolls the specified cell into view aligned according to the position specified by *alignX* and *alignY* , if possible.

| Parameter       | Type                                                                             | Description                                                                                                                                                                                                                         |
| --------------- | -------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **columnIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                      | The zero-based column index of the cell to scroll into view.                                                                                                                                                                        |
| **rowIndex**    | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                      | The zero-based row index of the cell to scroll into view.                                                                                                                                                                           |
| **alignX**      | [Position](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.position) | One of [Left](https://docs.wisej.com/api/enumerations/wisej.web.position#fields) or [Right](https://docs.wisej.com/api/enumerations/wisej.web.position#fields). Any other value is ignored and will use the least-effort alignment. |
| **alignY**      | [Position](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.position) | One of [Top](https://docs.wisej.com/api/enumerations/wisej.web.position#fields) or [Bottom](https://docs.wisej.com/api/enumerations/wisej.web.position#fields). Any other value is ignored and will use the least-effort alignment. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *columnIndex* is less than -1 or greater than the number of columns in the control, or *rowIndex* is less than -1 or greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ScrollColumnIntoView(columnIndex)

Scrolls the specified column into view.

| Parameter       | Type                                                        | Description                                                  |
| --------------- | ----------------------------------------------------------- | ------------------------------------------------------------ |
| **columnIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The zero-based column index of the cell to scroll into view. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *columnIndex* is less than -1 or greater than the number of columns in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ScrollColumnIntoView(columnIndex, alignX)

Scrolls the specified column into view aligned to the left or right according to the position specified by *alignX* .

| Parameter       | Type                                                                             | Description                                                                                                                                                                                                                         |
| --------------- | -------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **columnIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                      | The zero-based column index of the cell to scroll into view.                                                                                                                                                                        |
| **alignX**      | [Position](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.position) | One of [Left](https://docs.wisej.com/api/enumerations/wisej.web.position#fields) or [Right](https://docs.wisej.com/api/enumerations/wisej.web.position#fields). Any other value is ignored and will use the least-effort alignment. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *columnIndex* is less than -1 or greater than the number of columns in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ScrollColumnIntoView(column)

Scrolls the specified column into view.

| Parameter  | Type                                                                                                                 | Description                                                                                                                                  |
| ---------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| **column** | [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) | The [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn)to scroll into view. |

**Throws:**

* [ArgumentNullException](https://docs.microsoft.com/dotnet/api/system.argumentnullexception) *column* is null.
* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) *column* doesn't belong to this [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ScrollColumnIntoView(column, alignX)

Scrolls the specified column into view aligned to the left or right according to position specified by *alignX* .

| Parameter  | Type                                                                                                                 | Description                                                                                                                                                                                                                         |
| ---------- | -------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **column** | [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) | The [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn)to scroll into view.                                                                                        |
| **alignX** | [Position](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.position)                                     | One of [Left](https://docs.wisej.com/api/enumerations/wisej.web.position#fields) or [Right](https://docs.wisej.com/api/enumerations/wisej.web.position#fields). Any other value is ignored and will use the least-effort alignment. |

**Throws:**

* [ArgumentNullException](https://docs.microsoft.com/dotnet/api/system.argumentnullexception) *column* is null.
* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) *column* doesn't belong to this [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ScrollRowIntoView(row, alignY)

Scrolls the specified row into view.

| Parameter  | Type                                                                                                           | Description |
| ---------- | -------------------------------------------------------------------------------------------------------------- | ----------- |
| **row**    | [DataGridViewRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow) |             |
| **alignY** | [Position](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.position)                               |             |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is less than -1 or greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ScrollRowIntoView(rowIndex)

Scrolls the specified row into view aligned to the top or bottom according to the position specified by *alignY* .

| Parameter    | Type                                                        | Description                                               |
| ------------ | ----------------------------------------------------------- | --------------------------------------------------------- |
| **rowIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The zero-based row index of the cell to scroll into view. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is less than -1 or greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ScrollRowIntoView(rowIndex, alignY)

Scrolls the specified row into view.

| Parameter    | Type                                                                             | Description |
| ------------ | -------------------------------------------------------------------------------- | ----------- |
| **rowIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                      |             |
| **alignY**   | [Position](https://docs.wisej.com/api/wisej.web/enumerations/wisej.web.position) |             |

**Throws:**

* [ArgumentNullException](https://docs.microsoft.com/dotnet/api/system.argumentnullexception) *row* is null.
* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) *row* doesn't belong to this [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ScrollRowIntoView(row)

Scrolls the specified row into view aligned to the top or bottom according to the position specified by *alignY* .

| Parameter | Type                                                                                                           | Description                                                                                                                            |
| --------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| **row**   | [DataGridViewRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow) | The [DataGridViewRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow)to scroll into view. |

**Throws:**

* [ArgumentNullException](https://docs.microsoft.com/dotnet/api/system.argumentnullexception) *row* is null.
* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) *row* doesn't belong to this [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SelectAll()

Selects all the cells, or rows, or columns, according to the [SelectionMode](#selectionmode) property when the [MultiSelect](#multiselect) is true.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SelectAllCells()

Selects all the cells, regardless of the [SelectionMode](#selectionmode) and [MultiSelect](#multiselect) properties.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SelectAllColumns()

Selects all the columns, regardless of the [SelectionMode](#selectionmode) and [MultiSelect](#multiselect) properties.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SelectAllRows()

Selects all the rows, regardless of the [SelectionMode](#selectionmode) and [MultiSelect](#multiselect) properties.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) SelectCell(cellAddress)

Cancels the selection of all currently selected cells except the one indicated.

| Parameter       | Type                                                                | Description                        |
| --------------- | ------------------------------------------------------------------- | ---------------------------------- |
| **cellAddress** | [Point](https://docs.microsoft.com/dotnet/api/system.drawing.point) | The coordinates of cell to select. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-9bf7fa01e02f4da0f9ef90d3b049ae43e664919e%2Fprotected.png?alt=media) SelectCell(columnIndex, rowIndex)

Cancels the selection of all currently selected cells except the one indicated.

| Parameter       | Type                                                        | Description                                        |
| --------------- | ----------------------------------------------------------- | -------------------------------------------------- |
| **columnIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The zero-based column index of the cell to select. |
| **rowIndex**    | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | The zero-based row index of the cell to select.    |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *columnIndex* is less than -1 or greater than the number of columns in the control, or *rowIndex* is less than -1 or greater than the number of rows in the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SetCommand(columnIndex, rowIndex, command)

Sets the command of the specified cell without retrieving a [DataGridViewRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow) and without causing the permanent creation of a row instance. This method is particularly useful when the grid shows a large data set and/or it's operating in [VirtualMode](#virtualmode).

| Parameter       | Type                                                                           | Description                                                             |
| --------------- | ------------------------------------------------------------------------------ | ----------------------------------------------------------------------- |
| **columnIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                    | The index of the column containing the cell.                            |
| **rowIndex**    | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                    | The index of the row containing the cell.                               |
| **command**     | [ICommand](https://docs.wisej.com/api/wisej.web/interfaces/wisej.web.icommand) | Value to store in the cell identified by *columnIndex* and *rowIndex* . |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *columnIndex* is less than 0 or *columnIndex* is equal to or greater than the number of cells in the collection.
* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is less than 0.- or - *rowIndex* is equal to or greater than [Count](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewrowcollection#count).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SetCommand(cellAddress, command)

Sets the command of the specified cell without retrieving a [DataGridViewRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow) and without causing the permanent creation of a row instance. This method is particularly useful when the grid shows a large data set and/or it's operating in [VirtualMode](#virtualmode).

| Parameter       | Type                                                                           | Description                                              |
| --------------- | ------------------------------------------------------------------------------ | -------------------------------------------------------- |
| **cellAddress** | [Point](https://docs.microsoft.com/dotnet/api/system.drawing.point)            | Row and column index of the cell.                        |
| **command**     | [ICommand](https://docs.wisej.com/api/wisej.web/interfaces/wisej.web.icommand) | Value to store in the cell identified by *cellAddress* . |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *cellAddress* is less than 0 or equal to or greater than the number of row or columns in the collection.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SetCommand(columnName, rowIndex, command)

Sets the command of the specified cell without retrieving a [DataGridViewRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow) and without causing the permanent creation of a row instance. This method is particularly useful when the grid shows a large data set and/or it's operating in [VirtualMode](#virtualmode).

| Parameter      | Type                                                                           | Description                                                                                                                           |
| -------------- | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------- |
| **columnName** | [String](https://docs.microsoft.com/dotnet/api/system.string)                  | The [Name](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#name) of the column containing the cell. |
| **rowIndex**   | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                    | The index of the row containing the cell.                                                                                             |
| **command**    | [ICommand](https://docs.wisej.com/api/wisej.web/interfaces/wisej.web.icommand) | Value to store in the cell identified by *columnName* and *rowIndex* .                                                                |

**Throws:**

* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) *columnName* does not match the name of any columns in the control.
* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is less than 0.- or - *rowIndex* is equal to or greater than [Count](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewrowcollection#count).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SetCommand(column, rowIndex, command)

Sets the command of the specified cell without retrieving a [DataGridViewRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow) and without causing the permanent creation of a row instance. This method is particularly useful when the grid shows a large data set and/or it's operating in [VirtualMode](#virtualmode).

| Parameter    | Type                                                                                                                 | Description                                                                                                                                      |
| ------------ | -------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| **column**   | [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) | The [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) that contains the cell. |
| **rowIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                                          | The index of the row containing the cell.                                                                                                        |
| **command**  | [ICommand](https://docs.wisej.com/api/wisej.web/interfaces/wisej.web.icommand)                                       | Value to store in the cell identified by *column* and *rowIndex* .                                                                               |

**Throws:**

* [ArgumentNullException](https://docs.microsoft.com/dotnet/api/system.argumentnullexception) *column* is null.
* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) The specified *column* does not belong to the same [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) that owns the cells.
* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is less than 0.- or - *rowIndex* is equal to or greater than [Count](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewrowcollection#count).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SetCurrentCell(cellAddress)

Sets the currently focused cell.

| Parameter       | Type                                                                | Description          |
| --------------- | ------------------------------------------------------------------- | -------------------- |
| **cellAddress** | [Point](https://docs.microsoft.com/dotnet/api/system.drawing.point) | Address of the cell. |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SetCurrentCell(columnIndex, rowIndex)

Sets the currently focused cell.

| Parameter       | Type                                                        | Description               |
| --------------- | ----------------------------------------------------------- | ------------------------- |
| **columnIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | Column index of the cell. |
| **rowIndex**    | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | Row index of the cell.    |

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SetRowState(rowIndex, state)

Sets the *state* for the row at *rowIndex* .

| Parameter    | Type                                                                                                                               | Description                                                                                                                                      |
| ------------ | ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| **rowIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                                                        | The index of the row.                                                                                                                            |
| **state**    | [DataGridViewElementStates](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewelementstates) | [DataGridViewElementStates](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewelementstates) state to set. |

When using this method, the *state* parameter must contain all the states to set for the row. The best way to do this is to use [GetRowState](#getrowstate-rowindex) first and then OR or XOR or AND the state to alter. To set a specific state use [SetRowState](#setrowstate-rowindex-state). **Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is less than zero and greater than the number of rows in the collection.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SetRowState(rowIndex, state, on)

Sets the *state* for the row at *rowIndex* .

| Parameter    | Type                                                                                                                               | Description                                                                                                                                                 |
| ------------ | ---------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **rowIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                                                        | The index of the row.                                                                                                                                       |
| **state**    | [DataGridViewElementStates](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewelementstates) | [DataGridViewElementStates](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewelementstates) state to turn on or off. |
| **on**       | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean)                                                                    | True to add the *state* , otherwise false to remove the *state* .                                                                                           |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is less than zero and greater than the number of rows in the collection.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SetValue(columnIndex, rowIndex, value)

Sets the value of the specified cell without retrieving a [DataGridViewRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow) and without causing the permanent creation of a row instance. This method is particularly useful when the grid shows a large data set and/or it's operating in [VirtualMode](#virtualmode).

| Parameter       | Type                                                          | Description                                                             |
| --------------- | ------------------------------------------------------------- | ----------------------------------------------------------------------- |
| **columnIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)   | The index of the column containing the cell.                            |
| **rowIndex**    | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)   | The index of the row containing the cell.                               |
| **value**       | [Object](https://docs.microsoft.com/dotnet/api/system.object) | Value to store in the cell identified by *columnIndex* and *rowIndex* . |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *columnIndex* is less than 0 or *columnIndex* is equal to or greater than the number of cells in the collection.
* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is less than 0.- or - *rowIndex* is equal to or greater than [Count](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewrowcollection#count).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SetValue(cellAddress, value)

Sets the value of the specified cell without retrieving a [DataGridViewRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow) and without causing the permanent creation of a row instance. This method is particularly useful when the grid shows a large data set and/or it's operating in [VirtualMode](#virtualmode).

| Parameter       | Type                                                                | Description                                              |
| --------------- | ------------------------------------------------------------------- | -------------------------------------------------------- |
| **cellAddress** | [Point](https://docs.microsoft.com/dotnet/api/system.drawing.point) | Row and column index of the cell.                        |
| **value**       | [Object](https://docs.microsoft.com/dotnet/api/system.object)       | Value to store in the cell identified by *cellAddress* . |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *cellAddress* is less than 0 or equal to or greater than the number of row or columns in the collection.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SetValue(columnName, rowIndex, value)

Sets the value of the specified cell without retrieving a [DataGridViewRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow) and without causing the permanent creation of a row instance. This method is particularly useful when the grid shows a large data set and/or it's operating in [VirtualMode](#virtualmode).

| Parameter      | Type                                                          | Description                                                                                                                           |
| -------------- | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| **columnName** | [String](https://docs.microsoft.com/dotnet/api/system.string) | The [Name](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#name) of the column containing the cell. |
| **rowIndex**   | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)   | The index of the row containing the cell.                                                                                             |
| **value**      | [Object](https://docs.microsoft.com/dotnet/api/system.object) | Value to store in the cell identified by *columnName* and *rowIndex* .                                                                |

**Throws:**

* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) *columnName* does not match the name of any columns in the control.
* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is less than 0.- or - *rowIndex* is equal to or greater than [Count](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewrowcollection#count).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SetValue(column, rowIndex, value)

Sets the value of the specified cell without retrieving a [DataGridViewRow](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow) and without causing the permanent creation of a row instance. This method is particularly useful when the grid shows a large data set and/or it's operating in [VirtualMode](#virtualmode).

| Parameter    | Type                                                                                                                 | Description                                                                                                                                      |
| ------------ | -------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| **column**   | [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) | The [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) that contains the cell. |
| **rowIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32)                                                          | The index of the row containing the cell.                                                                                                        |
| **value**    | [Object](https://docs.microsoft.com/dotnet/api/system.object)                                                        | Value to store in the cell identified by *column* and *rowIndex* .                                                                               |

**Throws:**

* [ArgumentNullException](https://docs.microsoft.com/dotnet/api/system.argumentnullexception) *column* is null.
* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) The specified *column* does not belong to the same [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) that owns the cells.
* [ArgumentOutOfRangeException](https://docs.microsoft.com/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is less than 0.- or - *rowIndex* is equal to or greater than [Count](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewrowcollection#count).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Sort(column, direction)

Sorts the contents of the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control in ascending or descending order based on the contents of the specified column.

| Parameter     | Type                                                                                                                 | Description                                                                                                                        |
| ------------- | -------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| **column**    | [DataGridViewColumn](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) | The column by which to sort the contents of the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview). |
| **direction** | [ListSortDirection](https://docs.microsoft.com/dotnet/api/system.componentmodel.listsortdirection)                   | One of the [ListSortDirection](https://docs.microsoft.com/dotnet/api/system.componentmodel.listsortdirection) values.              |

**Throws:**

* [ArgumentException](https://docs.microsoft.com/dotnet/api/system.argumentexception) The specified column is not part of this [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview); or the [DataSource](#datasource) property has been set and the [IsDataBound](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#isdatabound) property of the specified column returns false.
* [ArgumentNullException](https://docs.microsoft.com/dotnet/api/system.argumentnullexception) *column* is null.
* [InvalidOperationException](https://docs.microsoft.com/dotnet/api/system.invalidoperationexception) The [VirtualMode](#virtualmode) property is set to true and the [IsDataBound](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#isdatabound) property of the specified column returns false; or the object specified by the [DataSource](#datasource) property does not implement the [IBindingList](https://docs.microsoft.com/dotnet/api/system.componentmodel.ibindinglist) interface; or the object specified by the [DataSource](#datasource) property has a [SupportsSorting](https://docs.microsoft.com/dotnet/api/system.componentmodel.ibindinglist.supportssorting) property value of false.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Sort(comparer)

Sorts the contents of the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control using an implementation of the [IComparer](https://docs.microsoft.com/dotnet/api/system.collections.icomparer) interface.

| Parameter    | Type                                                                            | Description                                                                                                                                      |
| ------------ | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| **comparer** | [IComparer](https://docs.microsoft.com/dotnet/api/system.collections.icomparer) | An implementation of [IComparer](https://docs.microsoft.com/dotnet/api/system.collections.icomparer) that performs the custom sorting operation. |

**Throws:**

* [ArgumentNullException](https://docs.microsoft.com/dotnet/api/system.argumentnullexception) *comparer* is null.
* [InvalidOperationException](https://docs.microsoft.com/dotnet/api/system.invalidoperationexception) [VirtualMode](#virtualmode) is set to true; or [DataSource](#datasource) is not null.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Update()

Causes the control to update the corresponding client side widget. When in design mode, causes the rendered control to update its entire surface in the designer.

## Events

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AllowUserToAddRowsChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when the value of the [AllowUserToAddRows](#allowusertoaddrows) property changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AllowUserToDeleteRowsChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when the value of the [AllowUserToDeleteRowsChanged](#allowusertodeleterowschanged) property changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AllowUserToOrderColumnsChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when the value of the [AllowUserToOrderColumns](#allowusertoordercolumns) property changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AllowUserToResizeColumnsChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when the value of the [AllowUserToResizeColumns](#allowusertoresizecolumns) property changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) AllowUserToResizeRowsChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when the value of the [AllowUserToResizeRows](#allowusertoresizerows) property changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellBeginEdit

[DataGridViewCellCancelEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellcanceleventhandler) Fired when edit mode starts for the selected cell.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellClick

[DataGridViewCellEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Fired when any part of a cell is clicked.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellCommandChanged

[DataGridViewCellEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Fired when the command of a cell changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellCommandNeeded

[DataGridViewCellCommandEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellcommandeventhandler) Fired when the [VirtualMode](#virtualmode) property of the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control is true and the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) requires a command for a cell in order to execute a user action.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellCommandPushed

[DataGridViewCellCommandEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellcommandeventhandler) Fired when the [VirtualMode](#virtualmode) property of the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control is true and a cell command has changed and requires storage in the underlying data source.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellContextMenuNeeded

[DataGridViewCellContextMenuNeededEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellcontextmenuneededeventhandler) Fired when a cell's context menu is needed.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellDoubleClick

[DataGridViewCellEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Fired when the user double-clicks anywhere in a cell.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellEndEdit

[DataGridViewCellEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Fired when edit mode stops for the current cell.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellEnter

[DataGridViewCellEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Fired when the current cell changes in the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control or when the control receives input focus.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellErrorTextChanged

[DataGridViewCellEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Fired when the value of the [ErrorText](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcell#errortext) property of a cell changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellErrorTextNeeded

[DataGridViewCellErrorTextNeededEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellerrortextneededeventhandler) Fired when a cell's error text is needed.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellFormatting

[DataGridViewCellFormattingEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellformattingeventhandler) Fired when the contents of a cell need to be formatted for display.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellLeave

[DataGridViewCellEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Fired when a cell loses input focus and is no longer the current cell.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellMouseClick

[DataGridViewCellMouseEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventhandler) Occurs whenever the user clicks anywhere on a cell with the mouse.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellMouseDoubleClick

[DataGridViewCellMouseEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventhandler) Fired when a cell within the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) is double-clicked.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellMouseDown

[DataGridViewCellMouseEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventhandler) Fired when the user presses a mouse button while the pointer is within the boundaries of a cell.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellMouseEnter

[DataGridViewCellEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Fired when the mouse pointer enters a cell.

This event fires only if there is an handler attached to it. A simple overload of the On\[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellMouseLeave

[DataGridViewCellEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Fired when the mouse pointer leaves a cell.

This event fires only if there is an handler attached to it. A simple overload of the On\[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellMouseMove

[DataGridViewCellMouseEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventhandler) Fired when the mouse pointer moves over the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control.

This event fires only if there is an handler attached to it. A simple overload of the On\[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellMouseUp

[DataGridViewCellMouseEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventhandler) Fired when the user releases a mouse button while over a cell.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellPaint

[DataGridViewCellPaintEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellpainteventhandler) Fired when a cell with the property [UserPaint](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcell#userpaint) set to true needs to be drawn.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellParsing

[DataGridViewCellParsingEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellparsingeventhandler) Fired when a cell leaves edit mode if the cell value has been modified.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellStateChanged

[DataGridViewCellStateChangedEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstatechangedeventhandler) Fired when a cell state changes, such as when the cell is selected or focused.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellStyleChanged

[DataGridViewCellEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Fired when the [Style](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcell#style) property of a [DataGridViewCell](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcell) changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellStyleContentChanged

[DataGridViewCellStyleContentChangedEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstylecontentchangedeventhandler) Fired when one of the values of a cell style changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellToolClick

[DataGridViewToolClickEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewtoolclickeventhandler) Fired when a [ComponentTool](https://docs.wisej.com/api/wisej.web/editors/wisej.web.componenttool) hosted in a cell editor is clicked.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellToolTipTextChanged

[DataGridViewCellEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Fired when the value of the [ToolTipText](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcell#tooltiptext) property of a cell changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellToolTipTextNeeded

[DataGridViewCellToolTipTextNeededEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelltooltiptextneededeventhandler) Fired when a cell's ToolTip text is needed.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellValidated

[DataGridViewCellEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Occurs after the cell has finished validating.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellValidating

[DataGridViewCellValidatingEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellvalidatingeventhandler) Fired when a cell loses input focus, enabling content validation.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellValueChanged

[DataGridViewCellEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Fired when the value of a cell changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellValueNeeded

[DataGridViewCellValueEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellvalueeventhandler) Fired when the [VirtualMode](#virtualmode) property of the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control is true and the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) requires a value for a cell in order to format and display the cell.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CellValuePushed

[DataGridViewCellValueEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellvalueeventhandler) Fired when the [VirtualMode](#virtualmode) property of the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control is true and a cell value has changed and requires storage in the underlying data source.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ColumnAdded

[DataGridViewColumnEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventhandler) Fired when a column is added to the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ColumnDisplayIndexChanged

[DataGridViewColumnEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventhandler) Fired when the value the [DisplayIndex](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#displayindex) property for a column changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ColumnFillWeightChanged

[DataGridViewColumnEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventhandler) Fired when the [FillWeight](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#fillweight) property changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ColumnHeaderMouseClick

[DataGridViewCellMouseEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventhandler) Fired when the user clicks a column header.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ColumnHeaderMouseDoubleClick

[DataGridViewCellMouseEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventhandler) Fired when a column header is double-clicked.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ColumnHeadersHeightChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when the value of the [ColumnHeadersHeight](#columnheadersheight) property changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ColumnMaximumWidthChanged

[DataGridViewColumnEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventhandler) Fired when the value of the [MaximumWidth](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#maximumwidth) property for a column changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ColumnMinimumWidthChanged

[DataGridViewColumnEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventhandler) Fired when the value of the [MinimumWidth](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#minimumwidth) property for a column changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ColumnNameChanged

[DataGridViewColumnEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventhandler) Fired when the [Name](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#name) property changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ColumnRemoved

[DataGridViewColumnEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventhandler) Fired when a column is removed from the control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ColumnSortModeChanged

[DataGridViewColumnEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventhandler) Fired when the value of the [SortMode](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#sortmode) property changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ColumnStateChanged

[DataGridViewColumnStateChangedEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumnstatechangedeventhandler) Fired when a column changes state, such as becoming visible.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ColumnWidthChanged

[DataGridViewColumnEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventhandler) Fired when the value of the [Width](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#width) property for a column changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) CurrentCellChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when the [CurrentCell](#currentcell) property changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) DataBindingComplete

[DataGridViewBindingCompleteEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewbindingcompleteeventhandler) Occurs after a data-binding operation has finished.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) DataError

[DataGridViewDataErrorEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewdataerroreventhandler) Fired when a data parsing or data validation operation throws an exception, or when committing data to a data source fails.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) DataMemberChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when value of the [DataMember](#datamember) property changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) DataRead

[DataGridViewDataReadEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewdatareadeventhandler) Occurs when the client requests a set of rows from the server.

You can use this event when the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) is in [VirtualMode](#virtualmode) to pre-populate a paged data set used when handling the [CellValueNeeded](#cellvalueneeded) events.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) DataSourceChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when the value of the [DataSource](#datasource) property changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) DataUpdated

[DataGridViewDataUpdatedEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewdataupdatedeventhandler) Fired when the client has updated one or more rows in the grid.

This event is fired only if the application has attached at least one handler to the event. Otherwise, simply overriding [OnDataUpdated](#ondataupdated) won't work.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) DefaultRowHeightChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when the value of the [DefaultRowHeight](#defaultrowheight) property changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) DefaultValuesNeeded

[DataGridViewRowEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventhandler) Fired when the user enters the row for new records so that it can be populated with default values.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) EditingControlShowing

[DataGridViewEditingControlShowingEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridvieweditingcontrolshowingeventhandler) Fired when a control for editing a cell is showing.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) EditModeChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when the value of the [EditMode](#editmode) property changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) KeepSameRowHeightChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when the value of the [KeepSameRowHeight](#keepsamerowheight) property changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) LastCellTab

[DataGridViewCellEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Fired when the user tabs past the last cell.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) LiveResizeChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when the value of the [LiveResize](#liveresize) property changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) MultiSelectChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when the value of the [MultiSelect](#multiselect) property changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) NewRowNeeded

[DataGridViewRowEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventhandler) Fired when the [VirtualMode](#virtualmode) property of the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) is true and the user navigates to the new row at the bottom of the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ReadOnlyChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when the value of the [ReadOnly](#readonly) property changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RowCollapsed

[DataGridViewRowEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventhandler) Fired when a parent row is collapsed.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RowEnter

[DataGridViewCellEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Fired when a row receives input focus but before it becomes the current row.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RowErrorTextChanged

[DataGridViewRowEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventhandler) Fired when the [ErrorText](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewrow#errortext) property of a row changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RowErrorTextNeeded

[DataGridViewRowErrorTextNeededEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowerrortextneededeventhandler) Fired when the row's error text is required.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RowExpanded

[DataGridViewRowEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventhandler) Fired when a parent row is expanded.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RowHeaderMouseClick

[DataGridViewCellMouseEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventhandler) Fired when the user clicks within the boundaries of a row header.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RowHeaderMouseDoubleClick

[DataGridViewCellMouseEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventhandler) Fired when a row header is double-clicked.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RowHeadersWidthChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when value of the [RowHeadersWidth](#rowheaderswidth) property changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RowHeightChanged

[DataGridViewRowEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventhandler) Fired when the value of the [Height](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewrow#height) property for a row changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RowHeightInfoNeeded

[DataGridViewRowHeightInfoNeededEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowheightinfoneededeventhandler) Fired when information about row height is requested.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RowLeave

[DataGridViewCellEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Fired when a row loses input focus and is no longer the current row.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RowMaximumHeightChanged

[DataGridViewRowEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventhandler) Fired when the value of the [MaximumHeight](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewrow#maximumheight) property for a row changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RowMinimumHeightChanged

[DataGridViewRowEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventhandler) Fired when the value of the [MinimumHeight](https://docs.wisej.com/api/wisej.web/lists-and-grids/wisej.web.datagridviewrow#minimumheight) property for a row changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RowsAdded

[DataGridViewRowsAddedEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowsaddedeventhandler) Occurs after a new row is added to the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RowsRemoved

[DataGridViewRowsRemovedEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowsremovedeventhandler) Fired when a row or rows are deleted from the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview).

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RowStateChanged

[DataGridViewRowStateChangedEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowstatechangedeventhandler) Fired when a row changes state, such as getting selected.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RowValidated

[DataGridViewCellEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Occurs after a row has finished validating.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) RowValidating

[DataGridViewCellCancelEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellcanceleventhandler) Fired when a row is validating.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Scroll

[ScrollEventHandler](https://docs.wisej.com/api/wisej.web/content/scrollbar/wisej.web.scrolleventhandler) Fired when the user or code scrolls the grid.

This event fires only if there is an handler attached to it. A simple overload of the On\[Event] method in a derived class will not be invoked unless there is at least one handler attached to the event.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SelectionChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when the current selection changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ShowColumnVisibilityMenuChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when the value of the [ShowColumnVisibilityMenu](#showcolumnvisibilitymenu) property changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) SortCompare

[DataGridViewSortCompareEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsortcompareeventhandler) Fired when the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) compares two cell values to perform a sort operation.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Sorted

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control completes a sorting operation.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) StandardReturnChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when the value of the [StandardReturn](#standardreturn) property changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) StandardTabChanged

[EventHandler](https://docs.microsoft.com/dotnet/api/system.eventhandler) Fired when the value of the [StandardTab](#standardtab) property changes.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ToolClick

[ToolClickEventHandler](https://docs.wisej.com/api/wisej.web/editors/wisej.web.toolclickeventhandler) Fired when a [ComponentTool](https://docs.wisej.com/api/wisej.web/editors/wisej.web.componenttool) is clicked.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) TopLeftHeaderClick

[DataGridViewCellCancelEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellcanceleventhandler) Fired when the user presses a mouse button while the pointer is on the top-left corner cell.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) UserAddedRow

[DataGridViewRowEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventhandler) Fired when the user has finished adding a row to the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) UserDeletedRow

[DataGridViewRowEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventhandler) Fired when the user has finished deleting a row from the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) UserDeletingRow

[DataGridViewRowCancelEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowcanceleventhandler) Fired when the user deletes a row from the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control.

## Implements

| Name                                                                                                 | Description                                                                                                                                                   |
| ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [IUserData](https://docs.wisej.com/api/wisej.web/interfaces/wisej.web.iuserdata)                     | Provides access to the `UserData` and `Tag` properties associated to the component implementing this interface.                                               |
| [IBindableComponent](https://docs.wisej.com/api/wisej.web/data-binding/wisej.web.ibindablecomponent) | Bindable components implement this interface.                                                                                                                 |
| [IDropTarget](https://docs.wisej.com/api/wisej.web/interfaces/wisej.web.idroptarget)                 | Controls that support drag & drop operations implement this interface.                                                                                        |
| [IReadOnly](https://docs.wisej.com/api/wisej.web/interfaces/wisej.web.ireadonly)                     | Provides access to the [ReadOnly](https://docs.wisej.com/api/interfaces/wisej.web.ireadonly#readonly) property for coontrols that support the read-only mode. |
| [IWisejComponent](https://docs.wisej.com/api/wisej.core/interfaces/wisej.core.iwisejcomponent)       | All wisej components implement this interface.                                                                                                                |
| [IWisejControl](https://docs.wisej.com/api/wisej.core/interfaces/wisej.core.iwisejcontrol)           | All wisej controls derived from the [Control](https://docs.wisej.com/api/wisej.web/general/control) class must implement this interface.                      |
| [IWisejDataStore](https://docs.wisej.com/api/wisej.core/interfaces/wisej.core.iwisejdatastore)       | All wisej data stores implement this interface.                                                                                                               |
| [IWisejHandler](https://docs.wisej.com/api/wisej.core/interfaces/wisej.core.iwisejhandler)           | Represents a Wisej component that is capable of handling postback requests from the client.                                                                   |
| [IWisejSerializable](https://docs.wisej.com/api/wisej.core/interfaces/wisej.core.iwisejserializable) | Allows an object to serialize itself.                                                                                                                         |
