# DataGridViewDataReadEventArgs

Namespace: **Wisej.Web**

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

Provides data for the [DataRead](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#dataread) event.

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

```csharp
public class DataGridViewDataReadEventArgs : EventArgs
```

{% endtab %}

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

```visual-basic
Public Class DataGridViewDataReadEventArgs
    Inherits EventArgs
```

{% endtab %}
{% endtabs %}

## Constructors

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

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

| Name           | Type                                                        | Description             |
| -------------- | ----------------------------------------------------------- | ----------------------- |
| **firstIndex** | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | Index of the first row. |
| **lastIndex**  | [Int32](https://docs.microsoft.com/dotnet/api/system.int32) | Index of the last row.  |

## Properties

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

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns the index of the first row requested by the grid.

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

[Int32](https://docs.microsoft.com/dotnet/api/system.int32): Returns the index of the last row requested by the grid.

## Used By

| Name                                                                                                                                             | Description                                                                                                                                 |
| ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------- |
| [DataGridViewDataReadEventHandler](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/wisej.web.datagridviewdatareadeventhandler) | Represents the method that will handle the [DataRead](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview/..#dataread) event. |
