# Customize the template/content of a locked Grid column using a cell template.

## Environment

<table>
    <tbody>
	    <tr>
	    	<td>Product Version</td>
	    	<td>3.6.3</td>
	    </tr>
	    <tr>
	    	<td>Product</td>
	    	<td>Progress® Kendo UI for Vue</td>
	    </tr>
    </tbody>
</table>

## Description

This Knowledge base(KB) article demonstrates how we can customize the template of a specific `locked` Grid column by defining a `custom cell template`.

**KB sections**

* [Solution description](https://www.telerik.com/kendo-vue-ui/components/knowledge-base/grid-locked-column-with-custom-template#solution-description)
* [Runnable example](https://www.telerik.com/kendo-vue-ui/components/knowledge-base/grid-locked-column-with-custom-template#runnable-example)

## Solution description

The current example demonstrates how we can **bold** the content of the `ProductID` and `Discontinued` columns in the Kendo UI for Vue Grid. Both the `ProductID` and `Discontinued` columns are defined as locked and to be able to customize their content, we need to use a template as follows:

```js
<template #myLockedCell="{ props }">
  <td
    :colspan="props.colspan"
    :class="props.class"
    :role="props.role"
    :data-grid-col-index="props['data-grid-col-index']"
    :aria-selected="props['aria-selected']"
  >
    <b>{{ props.dataItem[props.field] }}</b>
  </td>
</template>
```

Once we have the above template defined, what we need to do is to pass its name(`myLockedCell`) to the [cell](https://www.telerik.com/kendo-vue-ui/components/grid/api/gridcolumnprops#cell) column property. To do this, we are using the following definition:

```js
columns: [
  {
    field: 'ProductID',
    title: 'ID',
    width: '45px',
    cell: 'myLockedCell',
    locked: true,
  },
  .........
```

### Runnable example

[Demo Source](https://demos.telerik.com/kendo-vue-ui/knowledge-base/grid-locked-column-with-custom-template/source.txt)
