--- title: "Grid: Remove row" slug: "freaction-remove-from-grid" updated: 2026-05-05T12:46:16Z published: 2026-05-05T12:46:16Z canonical: "docs.lobstersoftware.com/freaction-remove-from-grid" --- > ## 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. # Grid: Remove row *See also:* [Grid: Fill](/v1/docs/en/freaction-fill-grid), [Grid: Clear](/v1/docs/en/freaction-clear-grid), [Grid: Add row(s)](/v1/docs/en/freaction-add-to-grid), [Grid: Replace selected rows](/v1/docs/en/freaction-update-selected-grid-rows) > [!NOTE] > **Actions – Abstract** > > The action [Grid: Remove row](/v1/docs/en/freaction-remove-from-grid) removes one or more rows from a [Data grid](/v1/docs/en/fre-data-grid-vo) linked as a **Target element** or one of the other [List elements](/v1/docs/en/fre-list-elements), if the service configuration of the target element allows this. The [Grid: Remove row](/v1/docs/en/freaction-remove-from-grid) action removes one or more rows from a [Data grid](/v1/docs/en/fre-data-grid-vo) linked as a **Target element** or one of the other [List elements](/v1/docs/en/fre-list-elements), if the service configuration of the target element allows this. ![images/download/attachments/189433968/image-2024-10-10_15-27-14-version-1-modificationdate-1728566834751-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-10-10_15-27-14-version-1-modificationdate-1728566834751-api-v2.png) **IMPORTANT:** The specification of a target element from the group of [List elements](/v1/docs/en/fre-list-elements) is required so that this action can be selected under **Action type**. The row(s) to be deleted from the **Target element** must exist as input data (`$input`) for the action. A target row is deleted if the associated data item is identical to the input data or is contained in a list of objects passed. The transfer of another data item (e.g. a copy) with identical content is not accepted. Suitable input data provides, for example, behavior types [Selected item of grid](/v1/docs/en/frebehav-grid-selected-item) or [Selected items of grid](/v1/docs/en/frebehav-grid-selected-items) respectively, or triggers like [Item selected](/v1/docs/en/fretrigger-item-selected) or [Item click](/v1/docs/en/fretrigger-item-click). However, depending on the type of **Target element** and its configuration, it must be noted that the "selected rows" may represent the value of the element, while the action [Grid: Remove row](/v1/docs/en/freaction-remove-from-grid) always removes rows from the list that is the basis for a selection. The selection itself remains even if the underlying list entry is removed. Therefore, removing a selection option at runtime may have no visible effect unless the rows removed from the list are also "deselected". ## Example For a truck transport, a suitable **Crew** should be assembled based on available candidates in a certain **Driving staff pool**. Within the crew, the role of **Drivers** and **Assistants** must be filled. Multiple allocations should be possible. Assigned candidates should be removed from the **Driving staff pool** selection list, so that contradictory assignments (within the same crew) are excluded. Runtime example: ![images/download/attachments/189433968/image2020-7-7_15-32-51-version-1-modificationdate-1728565897613-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2020-7-7_15-32-51-version-1-modificationdate-1728565897613-api-v2.png) - From a **Driving staff pool** (left) with four candidates originally (with the B or B/C "License") a "Driver" has already been assigned for the **Crew** in the image. - The role to be assigned within the **Crew** is determined via the centrally positioned [Combobox](/v1/docs/en/fre-combo-box-vo) element with the two options **Drivers** and **Assistants**. - An assignment is triggered by clicking on one of the entries in the **Driving staff pool** data grid. The clicked "row" is then removed on the left and added to the chosen [Data grid](/v1/docs/en/fre-data-grid-vo) ("Driver" or "Assistant") on the right. Configuration: | ![images/download/attachments/189433968/image-2024-10-10_15-36-53-version-1-modificationdate-1728567413816-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-10-10_15-36-53-version-1-modificationdate-1728567413816-api-v2.png) | For the **Driver staff pool** [Data grid](/v1/docs/en/fre-data-grid-vo), two similarly structured behaviors are configured for assigning a candidate as "Driver" or "Assistant". As an example, the "pickAssistant" behavior concerning the "Assistant" is discussed below: - The behavior reacts to the **Triggering event** [Item click](/v1/docs/en/fretrigger-item-click), which provides the data object with the clicked entry as input data (`$input`). --- - The **Behavior type** [Filled with](/v1/docs/en/frebehav-filled-with) checks the linked [Combobox](/v1/docs/en/fre-combo-box-vo) element, *here* on the key value `assistant` for the option "add to Assistants". --- - Under the **Actions on "true"** the action [Grid: Add row(s)](/v1/docs/en/freaction-add-to-grid) (collapsed in the picture) performs the actual assignment of an assistant, while the action [Grid: Remove row](/v1/docs/en/freaction-remove-from-grid) with the **Target element** "Driving staff pool" ensures that the assigned "Assistant" is removed from the "Driving staff pool". | | --- | --- | **NOTE:** The [Grid: Remove row](/v1/docs/en/freaction-remove-from-grid) action could also be used in a mirrored approach to remove assigned "Drivers" and "Assistants" when the [Item click](/v1/docs/en/fretrigger-item-click) is clicked from the respective [Data grid](/v1/docs/en/fre-data-grid-vo) elements. However, the action [Grid: Add row(s)](/v1/docs/en/freaction-add-to-grid) should then also be executed to add these options to the "Driving staff pool" again.