# ViewType

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Enums](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.ViewType/

View type enumeration.

- **Full name:** `MFiles.ViewType`
- **Proto file:** [`mfiles/enums.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/enums.proto)

<a id="values"></a>

## Values

| Name | Number | Description |
|---|---|---|
| <a id="v-VIEW_TYPE_SHOW_OBJECTS"></a>`VIEW_TYPE_SHOW_OBJECTS` | 0 | Normal view. Displays objects on its last level and can have a display hierarchy. |
| <a id="v-VIEW_TYPE_FILTER_ONLY"></a>`VIEW_TYPE_FILTER_ONLY` | 1 | Defines a filter only. Does not show objects and cannot have a display hierarchy. |

<a id="used-in-fields"></a>

## Used in fields

- [`View.type`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.View/index.md#f-type): The type of the view.
