# Remove the "Select all" checkbox in the Grid's header for checkbox selection

## Environment

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

## Description

I want to remove the "Select all" checkbox in the Grid's header when using checkbox selection.

This KB also answers the following questions:

* How do I remove or hide the "Select all" checkbox from the KendoReact Grid header?
* How can I keep row-level checkbox selection while removing the header checkbox?
* How do I customize the checkbox column header with the current `cells.headerCell` API?

## Solution

Use the [`cells.headerCell`](https://www.telerik.com/kendo-react-ui/components/grid/api/gridcellssettings#headerCell) property to customize the header cell of the checkbox column. Register the custom header cell on the [`Column`](https://www.telerik.com/kendo-react-ui/components/grid/api/gridcolumn) with `columnType="checkbox"`, then render the [`HeaderThElement`](https://www.telerik.com/kendo-react-ui/components/datatools/api/headerthelement) with the provided `thProps` and leave out `props.children`. This removes the built-in "Select all" checkbox while preserving the default row checkbox cells.

> Leaving out `props.children` also removes the default header content for that column, such as the resize handle.

Registering the custom header cell on the checkbox column limits the customization to that column, as shown in the following snippet:

```tsx
import { HeaderThElement } from '@progress/kendo-react-data-tools';
import { GridColumn as Column, GridCustomHeaderCellProps } from '@progress/kendo-react-grid';

const EmptyHeaderCell = (props: GridCustomHeaderCellProps) => (
	<HeaderThElement columnId={props.thProps?.columnId || ''} {...props.thProps} />
);

<Column columnType="checkbox" cells={{ headerCell: EmptyHeaderCell }} />
```

For more information about the available props, see [`GridCustomHeaderCellProps`](https://www.telerik.com/kendo-react-ui/components/grid/api/gridcustomheadercellprops).

The following example demonstrates how to remove the "Select all" checkbox from the KendoReact Grid header while preserving row checkbox selection.

[Demo Source](https://demos.telerik.com/kendo-react-ui/knowledge-base/grid/remove-select-all/source.txt)

## See Also

* [Grid Selection](https://www.telerik.com/kendo-react-ui/components/grid/selection)
* [Checkbox Selection](https://www.telerik.com/kendo-react-ui/components/grid/selection/row-selection#checkbox-selection)
* [Multiple Checkbox Selection](https://www.telerik.com/kendo-react-ui/components/grid/selection/multi-row-selection#multiple-checkbox-selection)
* [Custom Header Cells](https://www.telerik.com/kendo-react-ui/components/grid/cells/header-footer-filter-cells#custom-header-cells)
* [Grid Custom Cells Overview](https://www.telerik.com/kendo-react-ui/components/grid/cells)
