# ParentChildBehavior

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.ParentChildBehavior/

Parent-child behavior enumeration (affects searching and view levels).

- **Full name:** `MFiles.ParentChildBehavior`
- **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-PARENT_CHILD_BEHAVIOR_NONE"></a>`PARENT_CHILD_BEHAVIOR_NONE` | 0 | No special behavior. |
| <a id="v-PARENT_CHILD_BEHAVIOR_INCLUDE_CHILD_VALUES"></a>`PARENT_CHILD_BEHAVIOR_INCLUDE_CHILD_VALUES` | 1 | Accept matches to child values as well. |
| <a id="v-PARENT_CHILD_BEHAVIOR_INCLUDE_PARENT_VALUES"></a>`PARENT_CHILD_BEHAVIOR_INCLUDE_PARENT_VALUES` | 2 | Accept matches to parent values as well. |

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

## Used in fields

- [`ExpressionUnion.PropertyValueData.parent_child_behavior`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ExpressionUnion/index.md#t-PropertyValueData-parent_child_behavior): For hierarchical value lists: whether a match on a parent or child item also counts. Unset requires an exact match.
- [`ExpressionUnion.TypedValueData.parent_child_behavior`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ExpressionUnion/index.md#t-TypedValueData-parent_child_behavior): Parent-child behaviour, used within hierarchic value lists.
