# DataGridView

Namespace: **Wisej.Web**

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

* [Control](https://docs.wisej.com/api/v3.1/wisej.web/general/control)
  * [DataGridView](https://docs.wisej.com/api/v3.1/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)DataGridView()

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

## Properties

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

[Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean): Returns or sets whether the [DataGridView](https://docs.wisej.com/api/v3.1/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/en-us/dotnet/api/system.collections.ilist) object. (Default: `True`)

When the [DataGridView](https://docs.wisej.com/api/v3.1/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/en-us/dotnet/api/system.componentmodel.ibindinglist.supportssorting)). Otherwise, if the data is in an [IList](https://docs.microsoft.com/en-us/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)AllowUserToAddRows

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

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

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

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

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

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

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

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

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

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

[Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean): Returns or sets whether columns are created automatically when the [DataSource](#datasource) or [DataMember](#datamember) properties are set. This property is ignored in design mode - auto column generation is always on. (Default: `True`)

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

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

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

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

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

[DataGridViewAutoSizeRowsMode](https://docs.wisej.com/api/v3.1/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/en-us/dotnet/api/system.invalidoperationexception) The specified value when setting this property is [RowHeader](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewautosizerowsmode#fields) and row headers are hidden.

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

[Int32](https://docs.microsoft.com/en-us/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)BorderStyle

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

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

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

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

[DataGridViewClipboardCopyMode](https://docs.wisej.com/api/v3.1/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/v3.1/wisej.web/general/wisej.web.clipboard) and whether row and column header text is included. (Default: `EnableWithAutoHeaderText`)

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

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

**Throws:**

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

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

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

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

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

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

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

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/en-us/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)ColumnHeadersHeightSizeMode

[DataGridViewColumnHeadersHeightSizeMode](https://docs.wisej.com/api/v3.1/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)ColumnHeadersVisible

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

**Throws:**

* [InvalidOperationException](https://docs.microsoft.com/en-us/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/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#inheritedautosizemode) property value of [ColumnHeader](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewautosizecolumnmode#fields).

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

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

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

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

**Throws:**

* [InvalidOperationException](https://docs.microsoft.com/en-us/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/v3.1/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/en-us/dotnet/api/system.argumentexception) The specified cell when setting this property is not in the [DataGridView](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview).

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

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

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

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

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

[String](https://docs.microsoft.com/en-us/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/v3.1/wisej.web/lists-and-grids/datagridview) is displaying data. (Default: `""`)

**Throws:**

* [Exception](https://docs.microsoft.com/en-us/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/v3.1/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/en-us/dotnet/api/system.formatexception).

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

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

**Throws:**

* [Exception](https://docs.microsoft.com/en-us/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/v3.1/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/en-us/dotnet/api/system.formatexception).

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

[DataGridViewCellStyle](https://docs.wisej.com/api/v3.1/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/v3.1/wisej.web/lists-and-grids/datagridview) if no other cell style properties are set.

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

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

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

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

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

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

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

[DataGridViewEditMode](https://docs.wisej.com/api/v3.1/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/en-us/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/v3.1/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/en-us/dotnet/api/system.formatexception).

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

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

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

[Int32](https://docs.microsoft.com/en-us/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/v3.1/wisej.web/lists-and-grids/datagridview).

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/en-us/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/en-us/dotnet/api/system.invalidoperationexception) The specified value when setting this property indicates a column with a [Visible](https://docs.wisej.com/api/v3.1/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/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#frozen) property value of true.

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

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

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/en-us/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/en-us/dotnet/api/system.invalidoperationexception) The specified value when setting this property indicates a row with a [Visible](https://docs.wisej.com/api/v3.1/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/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewrow#frozen) property value of true.

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

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

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

[Int32](https://docs.microsoft.com/en-us/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/en-us/dotnet/api/system.argumentoutofrangeexception) The assigned value is less than 0 (see Remarks); or the assigned value is greater than 500.

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

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

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

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

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

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

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

[DataGridViewCell](https://docs.wisej.com/api/v3.1/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/en-us/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)Item(columnName, rowIndex)

[DataGridViewCell](https://docs.wisej.com/api/v3.1/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)Item(column, rowIndex)

[DataGridViewCell](https://docs.wisej.com/api/v3.1/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)Item(cellAddress)

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

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

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

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

[Boolean](https://docs.microsoft.com/en-us/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)MaxCachedBlocks

[Int32](https://docs.microsoft.com/en-us/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)MultiSelect

[Boolean](https://docs.microsoft.com/en-us/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/v3.1/wisej.web/lists-and-grids/datagridview) at a time. (Default: `True`)

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

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

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

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

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

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

**Throws:**

* [InvalidOperationException](https://docs.microsoft.com/en-us/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/en-us/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/v3.1/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/en-us/dotnet/api/system.formatexception).

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

[Boolean](https://docs.microsoft.com/en-us/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)RowCount

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

**Throws:**

* [ArgumentException](https://docs.microsoft.com/en-us/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/en-us/dotnet/api/system.invalidoperationexception) When setting this property, the [DataSource](#datasource) property is set.

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

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

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

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

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

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

[Int32](https://docs.microsoft.com/en-us/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/en-us/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)RowHeadersVisible

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

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

[Int32](https://docs.microsoft.com/en-us/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/en-us/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)RowHeadersWidthSizeMode

[DataGridViewRowHeadersWidthSizeMode](https://docs.wisej.com/api/v3.1/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)Rows

[DataGridViewRowCollection](https://docs.wisej.com/api/v3.1/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/v3.1/wisej.web/lists-and-grids/datagridview) control.

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

[DataGridViewRow](https://docs.wisej.com/api/v3.1/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/en-us/dotnet/api/system.invalidoperationexception) The specified row when setting this property has its [DataGridView](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewelement#datagridview) property set.

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

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

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

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

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

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

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

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

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

[Int32](https://docs.microsoft.com/en-us/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/v3.1/wisej.web/lists-and-grids/datagridview) that triggers other data-bounds controls to get updated. **Throws:**

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

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

[DataGridViewSelectionMode](https://docs.wisej.com/api/v3.1/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/v3.1/wisej.web/lists-and-grids/datagridview) can be selected. (Default: `FullRowSelect`)

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

[Boolean](https://docs.microsoft.com/en-us/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)ShowCellToolTips

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

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

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

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

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

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

[Boolean](https://docs.microsoft.com/en-us/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)SortedColumn

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

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

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

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

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

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

[DataGridViewSortSelectionMode](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsortselectionmode): Returns or sets a value indicating how the [DataGridView](https://docs.wisej.com/api/v3.1/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/v3.1/wisej.web/lists-and-grids/datagridview) or when the grid contains hierarchical rows.

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

[Boolean](https://docs.microsoft.com/en-us/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)Tools

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

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

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

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

[DataGridViewColumnHeaderCell](https://docs.wisej.com/api/v3.1/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/v3.1/wisej.web/lists-and-grids/datagridview) control.

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

[DataGridViewColumn](https://docs.wisej.com/api/v3.1/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)VirtualMode

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

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

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

## Methods

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

Creates or updates a [DataGridViewSummaryRow](https://docs.wisej.com/api/v3.1/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/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.summarytype)                     | Determines the aggregation type.                                                                                                                               |
| **groupCol**      | [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)                                                             | Name of the column that determines the group break values.                                                                                                     |
| **summaryCol**    | [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)                                                             | name of the column to aggregate.                                                                                                                               |
| **style**         | [DataGridViewCellStyle](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) | Optional [DataGridViewCellStyle](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) for the summary rows. |
| **customSummary** | [CustomSummary](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridview.customsummary)    | Optional custom summary function, used when *summaryType* is [Custom](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.summarytype#fields). |

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/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/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.summarytype)                     | Determines the aggregation type.                                                                                                                                 |
| **summaryPosition** | [SummaryRowPosition](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.summaryrowposition)       | Indicates the position of the [DataGridViewSummaryRow](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow). |
| **groupCol**        | [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)                                                             | Name of the column that determines the group break values.                                                                                                       |
| **summaryCol**      | [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)                                                             | Name of the column to aggregate.                                                                                                                                 |
| **style**           | [DataGridViewCellStyle](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) | Optional [DataGridViewCellStyle](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) for the summary rows.   |
| **customSummary**   | [CustomSummary](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridview.customsummary)    | Optional custom summary function, used when *summaryType* is [Custom](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.summarytype#fields).   |

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/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/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.summarytype)                     | Determines the aggregation type.                                                                                                                               |
| **groupFromCol**  | [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)                                                             | Name of the first column that determines the group break values.                                                                                               |
| **groupToCol**    | [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)                                                             | Name of the last column that determines the group break values.                                                                                                |
| **summaryCol**    | [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)                                                             | Name of the column to aggregate.                                                                                                                               |
| **style**         | [DataGridViewCellStyle](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) | Optional [DataGridViewCellStyle](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) for the summary rows. |
| **customSummary** | [CustomSummary](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridview.customsummary)    | Optional custom summary function, used when *summaryType* is [Custom](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.summarytype#fields). |

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/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/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.summarytype)                     | Determines the aggregation type.                                                                                                                                 |
| **summaryPosition** | [SummaryRowPosition](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.summaryrowposition)       | Indicates the position of the [DataGridViewSummaryRow](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow). |
| **groupFromCol**    | [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)                                                             | Name of the first column that determines the group break values.                                                                                                 |
| **groupToCol**      | [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)                                                             | Name of the last column that determines the group break values.                                                                                                  |
| **summaryCol**      | [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)                                                             | Name of the column to aggregate.                                                                                                                                 |
| **style**           | [DataGridViewCellStyle](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) | Optional [DataGridViewCellStyle](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) for the summary rows.   |
| **customSummary**   | [CustomSummary](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridview.customsummary)    | Optional custom summary function, used when *summaryType* is [Custom](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.summarytype#fields).   |

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

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

Creates or updates a [DataGridViewSummaryRow](https://docs.wisej.com/api/v3.1/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/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.summarytype)                     | Determines the aggregation type.                                                                                                                               |
| **groupCol**      | [DataGridViewColumn](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn)       | Column that determines the group break values.                                                                                                                 |
| **summaryCol**    | [DataGridViewColumn](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn)       | Column to aggregate.                                                                                                                                           |
| **style**         | [DataGridViewCellStyle](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) | Optional [DataGridViewCellStyle](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) for the summary rows. |
| **customSummary** | [CustomSummary](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridview.customsummary)    | Optional custom summary function, used when *summaryType* is [Custom](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.summarytype#fields). |

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/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/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.summarytype)                     | Determines the aggregation type.                                                                                                                                 |
| **summaryPosition** | [SummaryRowPosition](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.summaryrowposition)       | Indicates the position of the [DataGridViewSummaryRow](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow). |
| **groupCol**        | [DataGridViewColumn](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn)       | Column that determines the group break values.                                                                                                                   |
| **summaryCol**      | [DataGridViewColumn](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn)       | Column to aggregate.                                                                                                                                             |
| **style**           | [DataGridViewCellStyle](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) | Optional [DataGridViewCellStyle](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) for the summary rows.   |
| **customSummary**   | [CustomSummary](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridview.customsummary)    | Optional custom summary function, used when *summaryType* is [Custom](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.summarytype#fields).   |

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/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/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.summarytype)                     | Determines the aggregation type.                                                                                                                               |
| **groupFromCol**  | [DataGridViewColumn](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn)       | First column that determines the group break values.                                                                                                           |
| **groupToCol**    | [DataGridViewColumn](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn)       | Last column that determines the group break values.                                                                                                            |
| **summaryCol**    | [DataGridViewColumn](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn)       | Column to aggregate.                                                                                                                                           |
| **style**         | [DataGridViewCellStyle](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) | Optional [DataGridViewCellStyle](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) for the summary rows. |
| **customSummary** | [CustomSummary](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridview.customsummary)    | Optional custom summary function, used when *summaryType* is [Custom](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.summarytype#fields). |

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/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/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.summarytype)                     | Determines the aggregation type.                                                                                                                                 |
| **summaryPosition** | [SummaryRowPosition](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.summaryrowposition)       | Indicates the position of the [DataGridViewSummaryRow](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsummaryrow). |
| **groupFromCol**    | [DataGridViewColumn](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn)       | First column that determines the group break values.                                                                                                             |
| **groupToCol**      | [DataGridViewColumn](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn)       | Last column that determines the group break values.                                                                                                              |
| **summaryCol**      | [DataGridViewColumn](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn)       | Column to aggregate.                                                                                                                                             |
| **style**           | [DataGridViewCellStyle](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) | Optional [DataGridViewCellStyle](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstyle) for the summary rows.   |
| **customSummary**   | [CustomSummary](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridview.customsummary)    | Optional custom summary function, used when *summaryType* is [Custom](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.summarytype#fields).   |

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

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

Populates the [DataGridView](https://docs.wisej.com/api/v3.1/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/en-us/dotnet/api/system.object) | The object that contains data for the [DataGridView](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview) to display.                                      |
| **dataMember** | [String](https://docs.microsoft.com/en-us/dotnet/api/system.string) | The name of the table or list in the *data* object for which the [DataGridView](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview) should load the data. |

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

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.boolean) | true to include the rows and columns with the [Visible](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewband#visible) property set to false. |

**Returns:** [Boolean](https://docs.microsoft.com/en-us/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.int32) | The index of the column to resize; -1 indicates all columns. |

**Throws:**

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.int32) | The index of the column to resize; -1 indicates all columns. |
| **extraSpace**  | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32) | Additional space in pixels.                                  |

**Throws:**

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.int32)                                                                                 | The index of the column to resize; -1 indicates all columns.                                                                                                         |
| **autoSizeMode** | [DataGridViewAutoSizeColumnMode](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewautosizecolumnmode) | One of the [DataGridViewAutoSizeColumnMode](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewautosizecolumnmode) values. |

**Throws:**

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.int32)                                                                                 | The index of the column to resize; -1 indicates all columns.                                                                                                         |
| **autoSizeMode** | [DataGridViewAutoSizeColumnMode](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewautosizecolumnmode) | One of the [DataGridViewAutoSizeColumnMode](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewautosizecolumnmode) values. |
| **extraSpace**   | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)                                                                                 | Additional space in pixels.                                                                                                                                          |

**Throws:**

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.int32) | The index of the column to resize; -1 indicates all columns. |

**Throws:**

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.int32) | Additional space in pixels. |

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewautosizecolumnsmode) | One of the [DataGridViewAutoSizeColumnsMode](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewautosizecolumnsmode) values. |

**Throws:**

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewautosizecolumnsmode) | One of the [DataGridViewAutoSizeColumnsMode](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewautosizecolumnsmode) values. |
| **extraSpace**   | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)                                                                                   | Additional space in pixels.                                                                                                                                            |

**Throws:**

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.int32) | The index of the row to resize. |

**Throws:**

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.int32) | The index of the row to resize. |
| **extraSpace** | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32) | Additional space in pixels.     |

**Throws:**

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.int32)                                                                           | The index of the row to resize.                                                                                                                                |
| **autoSizeMode** | [DataGridViewAutoSizeRowMode](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewautosizerowmode) | One of the [DataGridViewAutoSizeRowMode](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewautosizerowmode) values. |

**Throws:**

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.int32)                                                                           | The index of the row to resize.                                                                                                                                |
| **autoSizeMode** | [DataGridViewAutoSizeRowMode](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewautosizerowmode) | One of the [DataGridViewAutoSizeRowMode](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewautosizerowmode) values. |
| **extraSpace**   | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)                                                                           | Additional space in pixels.                                                                                                                                    |

**Throws:**

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowheaderswidthsizemode) | One of the [DataGridViewRowHeadersWidthSizeMode](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowheaderswidthsizemode) values. |

**Throws:**

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowheaderswidthsizemode) | One of the [DataGridViewRowHeadersWidthSizeMode](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowheaderswidthsizemode) values. |
| **extraSpace**   | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)                                                                                           | Additional space in pixels.                                                                                                                                                    |

**Throws:**

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.int32)                                                                                           | The index of the row header with the changed content.                                                                                                                          |
| **autoSizeMode** | [DataGridViewRowHeadersWidthSizeMode](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowheaderswidthsizemode) | One of the [DataGridViewRowHeadersWidthSizeMode](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowheaderswidthsizemode) values. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/en-us/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/en-us/dotnet/api/system.argumentexception) *autoSizeMode* has the value [EnableResizing](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewrowheaderswidthsizemode#fields) or [DisableResizing](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewrowheaderswidthsizemode#fields)

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.int32)                                                                                           | The index of the row header with the changed content.                                                                                                                          |
| **autoSizeMode** | [DataGridViewRowHeadersWidthSizeMode](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowheaderswidthsizemode) | One of the [DataGridViewRowHeadersWidthSizeMode](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowheaderswidthsizemode) values. |
| **extraSpace**   | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)                                                                                           | Additional space in pixels.                                                                                                                                                    |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/en-us/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/en-us/dotnet/api/system.argumentexception) *autoSizeMode* has the value [EnableResizing](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewrowheaderswidthsizemode#fields) or [DisableResizing](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewrowheaderswidthsizemode#fields)

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.int32) | Additional space in pixels. |

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewautosizerowsmode) | One of the [DataGridViewAutoSizeRowMode](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewautosizerowmode) values. |

**Throws:**

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

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

Puts the current cell in edit mode.

| Parameter     | Type                                                                  | Description                                                               |
| ------------- | --------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| **selectAll** | [Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean) | true to select all the cell's contents; false to not select any contents. |

**Returns:** [Boolean](https://docs.microsoft.com/en-us/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/en-us/dotnet/api/system.invalidoperationexception) [CurrentCell](#currentcell) is not set to a valid cell.

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

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.boolean). true if the cancel was successful; otherwise, false.

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

Clears the current selection.

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

Commits changes to cell without ending edit mode.

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

**Throws:**

* [Exception](https://docs.microsoft.com/en-us/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/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewdataerroreventargs#throwexception) property to true.

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.boolean). true if the edit operation is committed and ended; otherwise, false.

**Throws:**

* [Exception](https://docs.microsoft.com/en-us/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/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewdataerroreventargs#throwexception) property to true.

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

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

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

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

| Parameter      | Type                                                                | Description                                                                                                                                                                   |
| -------------- | ------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **data**       | [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) | The object that contains data for the [DataGridView](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview) to display.                                      |
| **dataMember** | [String](https://docs.microsoft.com/en-us/dotnet/api/system.string) | The name of the table or list in the *data* object for which the [DataGridView](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview) should load the data. |

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

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/wisej.web/general/wisej.web.clipboard).

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

**Throws:**

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/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/en-us/dotnet/api/system.int32) | The index of the column containing the cell. |
| **rowIndex**    | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32) | The index of the row containing the cell.    |

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

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/en-us/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/en-us/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is less than 0.- or - *rowIndex* is equal to or greater than [Count](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewrowcollection#count).

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/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/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) | The [DataGridViewColumn](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) that contains the cell. |
| **rowIndex** | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)                                                         | The index of the row containing the cell.                                                                                                             |

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

**Throws:**

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/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/en-us/dotnet/api/system.string) | The [Name](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#name) of the column containing the cell. |
| **rowIndex**   | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)   | The index of the row containing the cell.                                                                                                  |

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

**Throws:**

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

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

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

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

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

**Throws:**

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/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/en-us/dotnet/api/system.int32) | The index of the column containing the cell. |
| **rowIndex**    | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32) | The index of the row containing the cell.    |

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

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/en-us/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/en-us/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is less than 0.- or - *rowIndex* is equal to or greater than [Count](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewrowcollection#count).

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/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/en-us/dotnet/api/system.drawing.point) | Row and column index of the cell. |

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

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/en-us/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/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/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) | The [DataGridViewColumn](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) that contains the cell. |
| **rowIndex** | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)                                                         | The index of the row containing the cell.                                                                                                             |

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

**Throws:**

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/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/en-us/dotnet/api/system.string) | The [Name](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#name) of the column containing the cell. |
| **rowIndex**   | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)   | The index of the row containing the cell.                                                                                                  |

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

**Throws:**

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.int32) | The x coordinate relative to the [DataGridView](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview) control. |
| **y**     | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32) | The y coordinate relative to the [DataGridView](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview) control. |

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.drawing.point) | The x, y coordinate relative to the [DataGridView](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview) control. |

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcell) | Cell to verify. |

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.int32) | The column index of the cell to verify. |
| **rowIndex** | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32) | The row index of the cell to verify.    |

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.drawing.point) | Coordinates of the cell to verify. |

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcell) | Cell to verify. |

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.int32) | The column index of the cell to verify. |
| **rowIndex** | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32) | The row index of the cell to verify.    |

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.drawing.point) | Coordinates of the cell to verify. |

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.drawing.point) | Cell address to verify. |

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.int32) | The index of the column to verify. |
| **rowIndex** | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32) | The index of the row to verify.    |

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.int32) | The index of the column to verify. |

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.int32) | The index of the row to verify. |

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

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

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

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellcanceleventargs) | A [DataGridViewCellMouseEventArgs](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventargs) that contains the event data. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/en-us/dotnet/api/system.argumentoutofrangeexception) The value of the [ColumnIndex](https://docs.wisej.com/api/v3.1/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/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewcellmouseeventargs#rowindex) property of *e* is greater than the number of rows in the control.

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/wisej.web/lists-and-grids/datagridview).

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/wisej.web/lists-and-grids/datagridview).

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

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

Removes the all the summary rows.

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.summaryrowposition) | Position of the summary rows to remove. |

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.string) | Name of the first column that determines the group break values. |

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.string) | Name of the first column that determines the group break values. |
| **groupToCol**   | [String](https://docs.microsoft.com/en-us/dotnet/api/system.string) | Name of the last column that determines the group break values.  |

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) | First column that determines the group break values. |

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) | First column that determines the group break values. |
| **groupToCol**   | [DataGridViewColumn](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) | Last column that determines the group break values.  |

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.summaryrowposition) | Position of the summary rows to remove.                          |
| **groupFromCol**    | [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)                                                       | Name of the first column that determines the group break values. |

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.summaryrowposition) | Position of the summary rows to remove.                          |
| **groupFromCol**    | [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)                                                       | Name of the first column that determines the group break values. |
| **groupToCol**      | [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)                                                       | Name of the last column that determines the group break values.  |

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.summaryrowposition) | Position of the summary rows to remove.              |
| **groupFromCol**    | [DataGridViewColumn](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) | First column that determines the group break values. |
| **groupToCol**      | [DataGridViewColumn](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) | Last column that determines the group break values.  |

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcell) | The [DataGridViewCell](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcell) to scroll into view. |

**Throws:**

* [ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/system.argumentnullexception) *cell* is null.
* [ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/system.argumentexception) *cell* doesn't belong to this [DataGridView](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview).

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcell) | The [DataGridViewCell](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcell) to scroll into view.                                                                                                |
| **alignX** | [Position](https://docs.wisej.com/api/v3.1/wisej.web/enumerations/wisej.web.position)                                 | One of [Left](https://docs.wisej.com/api/v3.1/enumerations/wisej.web.position#fields) or [Right](https://docs.wisej.com/api/v3.1/enumerations/wisej.web.position#fields). Any other value is ignored and will use the least-effort alignment. |
| **alignY** | [Position](https://docs.wisej.com/api/v3.1/wisej.web/enumerations/wisej.web.position)                                 | One of [Top](https://docs.wisej.com/api/v3.1/enumerations/wisej.web.position#fields) or [Bottom](https://docs.wisej.com/api/v3.1/enumerations/wisej.web.position#fields). Any other value is ignored and will use the least-effort alignment. |

**Throws:**

* [ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/system.argumentnullexception) *cell* is null.
* [ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/system.argumentexception) *cell* doesn't belong to this [DataGridView](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview).

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.drawing.point) | The address of the cell to scroll into view. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/en-us/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.drawing.point)             | The address of the cell to scroll into view.                                                                                                                                                                                                  |
| **alignX**      | [Position](https://docs.wisej.com/api/v3.1/wisej.web/enumerations/wisej.web.position) | One of [Left](https://docs.wisej.com/api/v3.1/enumerations/wisej.web.position#fields) or [Right](https://docs.wisej.com/api/v3.1/enumerations/wisej.web.position#fields). Any other value is ignored and will use the least-effort alignment. |
| **alignY**      | [Position](https://docs.wisej.com/api/v3.1/wisej.web/enumerations/wisej.web.position) | One of [Top](https://docs.wisej.com/api/v3.1/enumerations/wisej.web.position#fields) or [Bottom](https://docs.wisej.com/api/v3.1/enumerations/wisej.web.position#fields). Any other value is ignored and will use the least-effort alignment. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/en-us/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.int32) | The zero-based column index of the cell to scroll into view. |
| **rowIndex**    | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32) | The zero-based row index of the cell to scroll into view.    |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/en-us/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.int32)                     | The zero-based column index of the cell to scroll into view.                                                                                                                                                                                  |
| **rowIndex**    | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)                     | The zero-based row index of the cell to scroll into view.                                                                                                                                                                                     |
| **alignX**      | [Position](https://docs.wisej.com/api/v3.1/wisej.web/enumerations/wisej.web.position) | One of [Left](https://docs.wisej.com/api/v3.1/enumerations/wisej.web.position#fields) or [Right](https://docs.wisej.com/api/v3.1/enumerations/wisej.web.position#fields). Any other value is ignored and will use the least-effort alignment. |
| **alignY**      | [Position](https://docs.wisej.com/api/v3.1/wisej.web/enumerations/wisej.web.position) | One of [Top](https://docs.wisej.com/api/v3.1/enumerations/wisej.web.position#fields) or [Bottom](https://docs.wisej.com/api/v3.1/enumerations/wisej.web.position#fields). Any other value is ignored and will use the least-effort alignment. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/en-us/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.int32) | The zero-based column index of the cell to scroll into view. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/en-us/dotnet/api/system.argumentoutofrangeexception) *columnIndex* is less than -1 or greater than the number of columns in the control.

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.int32)                     | The zero-based column index of the cell to scroll into view.                                                                                                                                                                                  |
| **alignX**      | [Position](https://docs.wisej.com/api/v3.1/wisej.web/enumerations/wisej.web.position) | One of [Left](https://docs.wisej.com/api/v3.1/enumerations/wisej.web.position#fields) or [Right](https://docs.wisej.com/api/v3.1/enumerations/wisej.web.position#fields). Any other value is ignored and will use the least-effort alignment. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/en-us/dotnet/api/system.argumentoutofrangeexception) *columnIndex* is less than -1 or greater than the number of columns in the control.

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) | The [DataGridViewColumn](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn)to scroll into view. |

**Throws:**

* [ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/system.argumentnullexception) *column* is null.
* [ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/system.argumentexception) *column* doesn't belong to this [DataGridView](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview).

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) | The [DataGridViewColumn](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn)to scroll into view.                                                                                             |
| **alignX** | [Position](https://docs.wisej.com/api/v3.1/wisej.web/enumerations/wisej.web.position)                                     | One of [Left](https://docs.wisej.com/api/v3.1/enumerations/wisej.web.position#fields) or [Right](https://docs.wisej.com/api/v3.1/enumerations/wisej.web.position#fields). Any other value is ignored and will use the least-effort alignment. |

**Throws:**

* [ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/system.argumentnullexception) *column* is null.
* [ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/system.argumentexception) *column* doesn't belong to this [DataGridView](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview).

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

Scrolls the specified row into view.

| Parameter    | Type                                                              | Description                                               |
| ------------ | ----------------------------------------------------------------- | --------------------------------------------------------- |
| **rowIndex** | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32) | The zero-based row index of the cell to scroll into view. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/en-us/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is less than -1 or greater than the number of rows in the control.

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

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/en-us/dotnet/api/system.int32)                     | The zero-based row index of the cell to scroll into view.                                                                                                                                                                                     |
| **alignY**   | [Position](https://docs.wisej.com/api/v3.1/wisej.web/enumerations/wisej.web.position) | One of [Top](https://docs.wisej.com/api/v3.1/enumerations/wisej.web.position#fields) or [Bottom](https://docs.wisej.com/api/v3.1/enumerations/wisej.web.position#fields). Any other value is ignored and will use the least-effort alignment. |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/en-us/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is less than -1 or greater than the number of rows in the control.

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

Scrolls the specified row into view.

| Parameter | Type                                                                                                                | Description                                                                                                                                 |
| --------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| **row**   | [DataGridViewRow](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow) | The [DataGridViewRow](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow)to scroll into view. |

**Throws:**

* [ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/system.argumentnullexception) *row* is null.
* [ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/system.argumentexception) *row* doesn't belong to this [DataGridView](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview).

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

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/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow) | The [DataGridViewRow](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrow)to scroll into view.                                                                                                   |
| **alignY** | [Position](https://docs.wisej.com/api/v3.1/wisej.web/enumerations/wisej.web.position)                               | One of [Top](https://docs.wisej.com/api/v3.1/enumerations/wisej.web.position#fields) or [Bottom](https://docs.wisej.com/api/v3.1/enumerations/wisej.web.position#fields). Any other value is ignored and will use the least-effort alignment. |

**Throws:**

* [ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/system.argumentnullexception) *row* is null.
* [ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/system.argumentexception) *row* doesn't belong to this [DataGridView](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview).

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)SelectAllCells()

Selects all the cells, regardless of the [SelectionMode](#selectionmode) and [MultiSelect](#multiselect) properties.

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

Selects all the columns, regardless of the [SelectionMode](#selectionmode) and [MultiSelect](#multiselect) properties.

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

Selects all the rows, regardless of the [SelectionMode](#selectionmode) and [MultiSelect](#multiselect) properties.

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

Sets the currently focused cell.

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.int32) | Column index of the cell. |
| **rowIndex**    | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32) | Row index of the cell.    |

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/en-us/dotnet/api/system.int32)                                                                       | The index of the row.                                                                                                                                 |
| **state**    | [DataGridViewElementStates](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewelementstates) | [DataGridViewElementStates](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewelementstates) state to set. |

**Throws:**

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/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/en-us/dotnet/api/system.int32)   | The index of the column containing the cell.                            |
| **rowIndex**    | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)   | The index of the row containing the cell.                               |
| **value**       | [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) | Value to store in the cell identified by *columnIndex* and *rowIndex* . |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/en-us/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/en-us/dotnet/api/system.argumentoutofrangeexception) *rowIndex* is less than 0.- or - *rowIndex* is equal to or greater than [Count](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewrowcollection#count).

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/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/en-us/dotnet/api/system.drawing.point) | Row and column index of the cell.                        |
| **value**       | [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object)       | Value to store in the cell identified by *cellAddress* . |

**Throws:**

* [ArgumentOutOfRangeException](https://docs.microsoft.com/en-us/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/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/en-us/dotnet/api/system.string) | The [Name](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#name) of the column containing the cell. |
| **rowIndex**   | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)   | The index of the row containing the cell.                                                                                                  |
| **value**      | [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) | Value to store in the cell identified by *columnName* and *rowIndex* .                                                                     |

**Throws:**

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

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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/v3.1/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/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) | The [DataGridViewColumn](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumn) that contains the cell. |
| **rowIndex** | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)                                                         | The index of the row containing the cell.                                                                                                             |
| **value**    | [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object)                                                       | Value to store in the cell identified by *column* and *rowIndex* .                                                                                    |

**Throws:**

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

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

Sorts the contents of the [DataGridView](https://docs.wisej.com/api/v3.1/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/v3.1/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/v3.1/wisej.web/lists-and-grids/datagridview). |
| **direction** | [ListSortDirection](https://docs.microsoft.com/en-us/dotnet/api/system.componentmodel.listsortdirection)                  | One of the [ListSortDirection](https://docs.microsoft.com/en-us/dotnet/api/system.componentmodel.listsortdirection) values.             |

**Throws:**

* [ArgumentException](https://docs.microsoft.com/en-us/dotnet/api/system.argumentexception) The specified column is not part of this [DataGridView](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview); or the [DataSource](#datasource) property has been set and the [IsDataBound](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#isdatabound) property of the specified column returns false.
* [ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/system.argumentnullexception) *column* is null.
* [InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/system.invalidoperationexception) The [VirtualMode](#virtualmode) property is set to true and the [IsDataBound](https://docs.wisej.com/api/v3.1/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/en-us/dotnet/api/system.componentmodel.ibindinglist) interface; or the object specified by the [DataSource](#datasource) property has a [SupportsSorting](https://docs.microsoft.com/en-us/dotnet/api/system.componentmodel.ibindinglist.supportssorting) property value of false.

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

Sorts the contents of the [DataGridView](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview) control using an implementation of the [IComparer](https://docs.microsoft.com/en-us/dotnet/api/system.collections.icomparer) interface.

| Parameter    | Type                                                                                  | Description                                                                                                                                            |
| ------------ | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **comparer** | [IComparer](https://docs.microsoft.com/en-us/dotnet/api/system.collections.icomparer) | An implementation of [IComparer](https://docs.microsoft.com/en-us/dotnet/api/system.collections.icomparer) that performs the custom sorting operation. |

**Throws:**

* [ArgumentNullException](https://docs.microsoft.com/en-us/dotnet/api/system.argumentnullexception) *comparer* is null.
* [InvalidOperationException](https://docs.microsoft.com/en-us/dotnet/api/system.invalidoperationexception) [VirtualMode](#virtualmode) is set to true; or [DataSource](#datasource) is not null.

### ![](https://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)AllowUserToAddRowsChanged

[EventHandler](https://docs.microsoft.com/en-us/dotnet/api/system.eventhandler) Fired when the value of the [AllowUserToAddRows](#allowusertoaddrows) property changes.

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

[EventHandler](https://docs.microsoft.com/en-us/dotnet/api/system.eventhandler) Fired when the value of the [AllowUserToDeleteRowsChanged](#allowusertodeleterowschanged) property changes.

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

[EventHandler](https://docs.microsoft.com/en-us/dotnet/api/system.eventhandler) Fired when the value of the [AllowUserToOrderColumns](#allowusertoordercolumns) property changes.

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

[EventHandler](https://docs.microsoft.com/en-us/dotnet/api/system.eventhandler) Fired when the value of the [AllowUserToResizeColumns](#allowusertoresizecolumns) property changes.

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

[EventHandler](https://docs.microsoft.com/en-us/dotnet/api/system.eventhandler) Fired when the value of the [AllowUserToResizeRows](#allowusertoresizerows) property changes.

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

[DataGridViewCellCancelEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellcanceleventhandler) Fired when edit mode starts for the selected cell.

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

[DataGridViewCellEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Fired when any part of a cell is clicked.

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

[DataGridViewCellContextMenuNeededEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellcontextmenuneededeventhandler) Fired when a cell's context menu is needed.

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

[DataGridViewCellEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Fired when the user double-clicks anywhere in a cell.

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

[DataGridViewCellEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Fired when edit mode stops for the current cell.

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

[DataGridViewCellEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Fired when the current cell changes in the [DataGridView](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview) control or when the control receives input focus.

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

[DataGridViewCellEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Fired when the value of the [ErrorText](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewcell#errortext) property of a cell changes.

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

[DataGridViewCellErrorTextNeededEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellerrortextneededeventhandler) Fired when a cell's error text is needed.

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

[DataGridViewCellFormattingEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellformattingeventhandler) Fired when the contents of a cell need to be formatted for display.

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

[DataGridViewCellEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Fired when a cell loses input focus and is no longer the current cell.

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

[DataGridViewCellMouseEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventhandler) Occurs whenever the user clicks anywhere on a cell with the mouse.

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

[DataGridViewCellMouseEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventhandler) Fired when a cell within the [DataGridView](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview) is double-clicked.

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

[DataGridViewCellMouseEventHandler](https://docs.wisej.com/api/v3.1/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)CellMouseEnter

[DataGridViewCellEventHandler](https://docs.wisej.com/api/v3.1/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)CellMouseLeave

[DataGridViewCellEventHandler](https://docs.wisej.com/api/v3.1/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)CellMouseMove

[DataGridViewCellMouseEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventhandler) Fired when the mouse pointer moves over the [DataGridView](https://docs.wisej.com/api/v3.1/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)CellMouseUp

[DataGridViewCellMouseEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventhandler) Fired when the user releases a mouse button while over a cell.

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

[DataGridViewCellPaintEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellpainteventhandler) Fired when a cell with the property [UserPaint](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewcell#userpaint) set to true needs to be drawn.

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

[DataGridViewCellParsingEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellparsingeventhandler) Fired when a cell leaves edit mode if the cell value has been modified.

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

[DataGridViewCellStateChangedEventHandler](https://docs.wisej.com/api/v3.1/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)CellStyleChanged

[DataGridViewCellEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Fired when the [Style](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewcell#style) property of a [DataGridViewCell](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcell) changes.

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

[DataGridViewCellStyleContentChangedEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellstylecontentchangedeventhandler) Fired when one of the values of a cell style changes.

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

[DataGridViewToolClickEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewtoolclickeventhandler) Fired when a [ComponentTool](https://docs.wisej.com/api/v3.1/wisej.web/editors/wisej.web.componenttool) hosted in a cell editor is clicked.

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

[DataGridViewCellEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Fired when the value of the [ToolTipText](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewcell#tooltiptext) property of a cell changes.

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

[DataGridViewCellToolTipTextNeededEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelltooltiptextneededeventhandler) Fired when a cell's ToolTip text is needed.

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

[DataGridViewCellEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Occurs after the cell has finished validating.

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

[DataGridViewCellValidatingEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellvalidatingeventhandler) Fired when a cell loses input focus, enabling content validation.

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

[DataGridViewCellEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Fired when the value of a cell changes.

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

[DataGridViewCellValueEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellvalueeventhandler) Fired when the [VirtualMode](#virtualmode) property of the [DataGridView](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview) control is true and the [DataGridView](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview) requires a value for a cell in order to format and display the cell.

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

[DataGridViewCellValueEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellvalueeventhandler) Fired when the [VirtualMode](#virtualmode) property of the [DataGridView](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview) control is true and a cell value has changed and requires storage in the underlying data source.

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

[DataGridViewColumnEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventhandler) Fired when a column is added to the control.

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

[DataGridViewColumnEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventhandler) Fired when the value the [DisplayIndex](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#displayindex) property for a column changes.

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

[DataGridViewColumnEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventhandler) Fired when the [FillWeight](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#fillweight) property changes.

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

[DataGridViewCellMouseEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventhandler) Fired when the user clicks a column header.

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

[DataGridViewCellMouseEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventhandler) Fired when a column header is double-clicked.

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

[EventHandler](https://docs.microsoft.com/en-us/dotnet/api/system.eventhandler) Fired when the value of the [ColumnHeadersHeight](#columnheadersheight) property changes.

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

[DataGridViewColumnEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventhandler) Fired when the value of the [MaximumWidth](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#maximumwidth) property for a column changes.

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

[DataGridViewColumnEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventhandler) Fired when the value of the [MinimumWidth](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#minimumwidth) property for a column changes.

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

[DataGridViewColumnEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventhandler) Fired when the [Name](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#name) property changes.

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

[DataGridViewColumnEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventhandler) Fired when a column is removed from the control.

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

[DataGridViewColumnEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventhandler) Fired when the value of the [SortMode](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#sortmode) property changes.

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

[DataGridViewColumnStateChangedEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumnstatechangedeventhandler) Fired when a column changes state, such as becoming visible.

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

[DataGridViewColumnEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcolumneventhandler) Fired when the value of the [Width](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewcolumn#width) property for a column changes.

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

[EventHandler](https://docs.microsoft.com/en-us/dotnet/api/system.eventhandler) Fired when the [CurrentCell](#currentcell) property changes.

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

[DataGridViewBindingCompleteEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewbindingcompleteeventhandler) Occurs after a data-binding operation has finished.

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

[DataGridViewDataErrorEventHandler](https://docs.wisej.com/api/v3.1/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)DataMemberChanged

[EventHandler](https://docs.microsoft.com/en-us/dotnet/api/system.eventhandler) Fired when value of the [DataMember](#datamember) property changes.

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

[DataGridViewDataReadEventHandler](https://docs.wisej.com/api/v3.1/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/v3.1/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)DataSourceChanged

[EventHandler](https://docs.microsoft.com/en-us/dotnet/api/system.eventhandler) Fired when the value of the [DataSource](#datasource) property changes.

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

[DataGridViewDataUpdatedEventHandler](https://docs.wisej.com/api/v3.1/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)DefaultRowHeightChanged

[EventHandler](https://docs.microsoft.com/en-us/dotnet/api/system.eventhandler) Fired when the value of the [DefaultRowHeight](#defaultrowheight) property changes.

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

[DataGridViewRowEventHandler](https://docs.wisej.com/api/v3.1/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)EditingControlShowing

[DataGridViewEditingControlShowingEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridvieweditingcontrolshowingeventhandler) Fired when a control for editing a cell is showing.

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

[EventHandler](https://docs.microsoft.com/en-us/dotnet/api/system.eventhandler) Fired when the value of the [EditMode](#editmode) property changes.

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

[EventHandler](https://docs.microsoft.com/en-us/dotnet/api/system.eventhandler) Fired when the value of the [KeepSameRowHeight](#keepsamerowheight) property changes.

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

[DataGridViewCellEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Fired when the user tabs past the last cell.

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

[EventHandler](https://docs.microsoft.com/en-us/dotnet/api/system.eventhandler) Fired when the value of the [LiveResize](#liveresize) property changes.

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

[EventHandler](https://docs.microsoft.com/en-us/dotnet/api/system.eventhandler) Fired when the value of the [MultiSelect](#multiselect) property changes.

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

[DataGridViewRowEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventhandler) Fired when the [VirtualMode](#virtualmode) property of the [DataGridView](https://docs.wisej.com/api/v3.1/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/v3.1/wisej.web/lists-and-grids/datagridview).

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

[EventHandler](https://docs.microsoft.com/en-us/dotnet/api/system.eventhandler) Fired when the value of the [ReadOnly](#readonly) property changes.

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

[DataGridViewRowEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventhandler) Fired when a parent row is collapsed.

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

[DataGridViewCellEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Fired when a row receives input focus but before it becomes the current row.

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

[DataGridViewRowEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventhandler) Fired when the [ErrorText](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewrow#errortext) property of a row changes.

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

[DataGridViewRowErrorTextNeededEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowerrortextneededeventhandler) Fired when the row's error text is required.

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

[DataGridViewRowEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventhandler) Fired when a parent row is expanded.

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

[DataGridViewCellMouseEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventhandler) Fired when the user clicks within the boundaries of a row header.

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

[DataGridViewCellMouseEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellmouseeventhandler) Fired when a row header is double-clicked.

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

[EventHandler](https://docs.microsoft.com/en-us/dotnet/api/system.eventhandler) Fired when value of the [RowHeadersWidth](#rowheaderswidth) property changes.

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

[DataGridViewRowEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventhandler) Fired when the value of the [Height](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewrow#height) property for a row changes.

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

[DataGridViewRowHeightInfoNeededEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowheightinfoneededeventhandler) Fired when information about row height is requested.

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

[DataGridViewCellEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Fired when a row loses input focus and is no longer the current row.

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

[DataGridViewRowEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventhandler) Fired when the value of the [MaximumHeight](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewrow#maximumheight) property for a row changes.

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

[DataGridViewRowEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewroweventhandler) Fired when the value of the [MinimumHeight](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/wisej.web.datagridviewrow#minimumheight) property for a row changes.

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

[DataGridViewRowsAddedEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowsaddedeventhandler) Occurs after a new row is added to the [DataGridView](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview).

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

[DataGridViewRowsRemovedEventHandler](https://docs.wisej.com/api/v3.1/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/v3.1/wisej.web/lists-and-grids/datagridview).

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

[DataGridViewRowStateChangedEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowstatechangedeventhandler) Fired when a row changes state, such as getting selected.

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

[DataGridViewCellEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcelleventhandler) Occurs after a row has finished validating.

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

[DataGridViewCellCancelEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewcellcanceleventhandler) Fired when a row is validating.

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

[ScrollEventHandler](https://docs.wisej.com/api/v3.1/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)SelectionChanged

[EventHandler](https://docs.microsoft.com/en-us/dotnet/api/system.eventhandler) Fired when the current selection changes.

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

[EventHandler](https://docs.microsoft.com/en-us/dotnet/api/system.eventhandler) Fired when the value of the [ShowColumnVisibilityMenu](#showcolumnvisibilitymenu) property changes.

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

[DataGridViewSortCompareEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewsortcompareeventhandler) Fired when the [DataGridView](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview) compares two cell values to perform a sort operation.

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

[EventHandler](https://docs.microsoft.com/en-us/dotnet/api/system.eventhandler) Fired when the [DataGridView](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview) control completes a sorting operation.

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

[EventHandler](https://docs.microsoft.com/en-us/dotnet/api/system.eventhandler) Fired when the value of the [StandardTab](#standardtab) property changes.

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

[ToolClickEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/editors/wisej.web.toolclickeventhandler) Fired when a [ComponentTool](https://docs.wisej.com/api/v3.1/wisej.web/editors/wisej.web.componenttool) is clicked.

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

[DataGridViewCellCancelEventHandler](https://docs.wisej.com/api/v3.1/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://3858804530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1zeuyneJ2f5i3NKcg6us%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media)UserAddedRow

[DataGridViewRowEventHandler](https://docs.wisej.com/api/v3.1/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/v3.1/wisej.web/lists-and-grids/datagridview) control.

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

[DataGridViewRowEventHandler](https://docs.wisej.com/api/v3.1/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/v3.1/wisej.web/lists-and-grids/datagridview) control.

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

[DataGridViewRowCancelEventHandler](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewrowcanceleventhandler) Fired when the user deletes a row from the [DataGridView](https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview) control.

## Implements

| Name                                                                                                      | Description                                                                                                                                                        |
| --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [IBindableComponent](https://docs.wisej.com/api/v3.1/wisej.web/data-binding/wisej.web.ibindablecomponent) | Bindable components implement this interface.                                                                                                                      |
| [IDropTarget](https://docs.wisej.com/api/v3.1/wisej.web/interfaces/wisej.web.idroptarget)                 | Controls that support drag & drop operations implement this interface.                                                                                             |
| [IReadOnly](https://docs.wisej.com/api/v3.1/wisej.web/interfaces/wisej.web.ireadonly)                     | Provides access to the [ReadOnly](https://docs.wisej.com/api/v3.1/interfaces/wisej.web.ireadonly#readonly) property for coontrols that support the read-only mode. |
| [IWisejComponent](https://docs.wisej.com/api/v3.1/wisej.core/interfaces/wisej.core.iwisejcomponent)       | All wisej components implement this interface.                                                                                                                     |
| [IWisejControl](https://docs.wisej.com/api/v3.1/wisej.core/interfaces/wisej.core.iwisejcontrol)           | All wisej controls derived from the [Control](https://docs.wisej.com/api/v3.1/wisej.web/general/control) class must implement this interface.                      |
| [IWisejDataStore](https://docs.wisej.com/api/v3.1/wisej.core/interfaces/wisej.core.iwisejdatastore)       | All wisej data stores implement this interface.                                                                                                                    |
| [IWisejHandler](https://docs.wisej.com/api/v3.1/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/v3.1/wisej.core/interfaces/wisej.core.iwisejserializable) | Allows an object to serialize itself.                                                                                                                              |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wisej.com/api/v3.1/wisej.web/lists-and-grids/datagridview.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
