# IDataStore<T> interface

Namespace: [Eto.Forms](https://eto.picoe.ca/api/namespace/eto.forms.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
public interface IDataStore<T>
```

Base data store interface to bind to a collection of objects of a particular type.

**Remarks:** Note that you should use an [ObservableCollection<T>](https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.observablecollection-1) if you want the control to respond to changes of the collection.

**Type parameters:**

- `out T`

**Derived types:** [ITreeGridStore<T>](https://eto.picoe.ca/api/type/eto.forms.itreegridstore-1.md), [ITreeStore](https://eto.picoe.ca/api/type/eto.forms.itreestore.md)

## Properties

- [Count](https://eto.picoe.ca/api/type/eto.forms.idatastore-1/count.md): Gets the number of items in this data store.

## Indexers

- [this[]](https://eto.picoe.ca/api/type/eto.forms.idatastore-1/item.md): Gets the object at the specified index.
