# IWisejDataStore

Namespace: **Wisej.Core**

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

All wisej data stores implement this interface.

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

```csharp
public interface IWisejDataStore
```

{% endtab %}

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

```visual-basic
Public Interface IWisejDataStore
```

{% endtab %}
{% endtabs %}

## Methods

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

Returns the number of available records.

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

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

Returns a data object.

| Parameter | Type                                                          | Description                                                                                                                                                                                                                                  |
| --------- | ------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **data**  | [Object](https://docs.microsoft.com/dotnet/api/system.object) | Request parameters. The parameters depend on the data consumer. For example, the [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) control uses: first, last, sortIndex, and sortDirection("asc" or "desc"). |

**Returns:** [Object](https://docs.microsoft.com/dotnet/api/system.object). An object that contains the data requested by the component.

## Implemented By

| Name                                                                              | Description                                                                                                                   |
| --------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| [DataGridView](https://docs.wisej.com/api/wisej.web/lists-and-grids/datagridview) | Represents a data grid control.                                                                                               |
| [ListView](https://docs.wisej.com/api/wisej.web/lists-and-grids/listview)         | Represents a list view control, which displays a collection of items that can be displayed using one of four different views. |
