# Enable\Disable Grid Elements

**RadGridView** is an advanced control, that allows you to enable/disable its different parts. You can set the boolean property **IsEnabled** to each one of the following objects:

* **RadGridView**

* **GridViewRow**

* **GridViewCell**

Having this in mind, you can control the behavior and enable/disable different parts of your grid view according to some internal logic of yours.

> important GridViewDataColumn.IsEnabled property cannot be actually used. It is a dependency property inherited from [ContentElement](http://msdn.microsoft.com/en-us/library/system.windows.contentelement.aspx).

You can **disable whole column** by changing the **IsEnabled** property of each one of **its cells**. This property gets or sets a value indicating whether this element is enabled in the user interface (UI). This is a dependency property inherited from [UIElement](http://msdn.microsoft.com/en-us/library/system.windows.uielement).

```XAML
<Style x:Key="disabledStyle" TargetType="telerik:GridViewCell">
    <Setter Property="IsEnabled" Value="False"/>
</Style>
```

```XAML
<telerik:GridViewDataColumn DataMemberBinding="{Binding CompanyName}" CellStyle="{StaticResource disabledStyle}"/>
```

The screenshot below illustrates RadGridView control with a few disabled cells along with the "CompanyName" column.

![Telerik UI for WPF RadGridView with disabled cells and a disabled CompanyName column](https://www.telerik.com/products/wpf/documentation/assets/6bddf94e1153f088fc5d1a11ca1da9df/radgridview_enabledisable_1.png)

To **disable all the rows** you need to apply a Style targeting the **GridViewRow** element.

```XAML
<Style TargetType="telerik:GridViewRow">
    <Setter Property="IsEnabled" Value="False"/>
</Style>
```

The defined Style is implicit and it will be applied to all elements of type GridViewRow.

To apply the disabled style to some rows only, you can consider [RowStyleSelector](https://www.telerik.com/products/wpf/documentation/controls/radgridview/style-selectors/rowstyleselector).

## See Also

* [Read Only Rows and Cells](https://www.telerik.com/products/wpf/documentation/controls/radgridview/columns/how-to/read-only-rows-cells)

* [UI Virtualization](https://www.telerik.com/products/wpf/documentation/controls/radgridview/features/ui-virtualization)
