# Locking Numeric Box

Blazor Edition provides a set of native UI controls built for Blazor such as FlexGrid, Chart, ListView, and input controls including AutoComplete and ComboBox.

## Content



You can lock the NumericBox control using **IsReadOnly** and **IsEnabled** properties of **C1NumericBox** class. You can set IsReadOnly property to true to make the Numeric Box uneditable. Similarly, you can set the IsEnable property to False to disable editing in the Numeric Box as shown in the below image.

![NumericBox after setting IsEnable property to true.](https://cdn.mescius.io/document-site-files/images/f5b600ba-f1a7-4f89-a20c-aa6c0c35880d/images/disable.png)

The following code example demonstrates locking the C1NumericBox control.

```razor
<div>
    <C1NumericBox Format="##,###.##" IsReadOnly="true" Placeholder="Any Text" Style="@_c1Style" TNumeric="double?" Value="999999.99"></C1NumericBox>
    <br /><br />
    <C1NumericBox Format="##,###.##" IsEnabled="false" Placeholder="Any Text" Style="@_c1Style" TNumeric="double?" Value="999999.99"></C1NumericBox>
</div>
```