--- title: "Selected item of grid" slug: "frebehav-grid-selected-item" updated: 2026-05-04T05:57:54Z published: 2026-05-04T05:57:54Z canonical: "docs.lobstersoftware.com/frebehav-grid-selected-item" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Selected item of grid > [!NOTE] > The **Behavior type** [Selected item of grid](/v1/docs/en/frebehav-grid-selected-item) checks a specific *element to be evaluated* ([Data grid](/v1/docs/en/fre-data-grid-vo) or other [List elements](/v1/docs/en/fre-list-elements)) for the presence of a selection and returns the first object in this selection, if any. ![images/download/attachments/177913714/image-2024-9-25_10-48-57-version-1-modificationdate-1727254136970-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-9-25_10-48-57-version-1-modificationdate-1727254136970-api-v2.png) The *element to be evaluated* is determined as follows, depending on the existence of an element link for the behavior: - If no element is linked, then the *executing element* of the behavior is examined. - If an element is linked, then the *linked element* is examined. **Actions on "true"** are executed if the following conditions are met: - The *element to be evaluated* belongs to the group of [List elements](/v1/docs/en/fre-list-elements). - There is a selection for the *element to be evaluated*, that is, at least one element is selected. For **Actions on "true"**, the data of one object in the selection is then available: - If a singular selection (with just one object) exists, its data is used. - If multiple elements are selected, the data of the object that was first added to the selection is used. In all other cases, **Actions on "false"** are performed, when two different cases of data are to be differentiated: - If the *element evaluated* is a list element for which no selection exists, the behavior data is empty (`$null`). - If the *element evaluated* is not a list element, any existing behavior data is passed on unchanged. ## Specific notes for different types of List elements | Relevant for Notes | [Data grid](/v1/docs/en/fre-data-grid-vo) | [Combobox](/v1/docs/en/fre-combo-box-vo) | [Multiselect combobox](/v1/docs/en/fre-multi-select-combo-box-vo) | [Tree element](/v1/docs/en/fre-tree-vo) with option "Items checkable" | | --- | --- | --- | --- | --- | | The behavior [Selected item of grid](/v1/docs/en/frebehav-grid-selected-item) is only useful for list elements that support **selection**. | - always | - always | - always | - always | | To inspect a **multiple selection**, it often more useful to choose the behavior [Selected items of grid](/v1/docs/en/frebehav-grid-selected-items) unless determining whether at least one element is selected is the key objective. | - with option **Allow multiple selection** | - never | - always | - always | | For list elements for which **selection** is the **value** of the element, the behavior may report "items" as selected that are not (or no longer) contained in the list. | - never | - possible | - possible | - possible |