# Hide conditionally the expand icon for some items

## Environment

<table>
	<tbody>
		<tr>
			<td>Product Version</td>
			<td>5.14.1</td>
		</tr>
		<tr>
			<td>Product</td>
			<td>Progress® KendoReact Grid</td>
		</tr>
	</tbody>
</table>

## Description

I want to hide the expand icon for some rows based on a condition from the dataItems values.

## Solution

Within the cellRender of the Grid check if the field for the cell is the expand field and use the props.dataItem to return an empty TD element if the condition for the expand icon is not met.

This is an example showcasing this approach:

[Demo Source](https://demos.telerik.com/kendo-react-ui/knowledge-base/grid/grid-hide-expand-icon-conditionally/source.txt)
