Conditional DataGrid InLine Editing

When a row enters "edit mode", I believe the EditTemplate is activated, normally to show a component to help the user fill the data (picker, dropdown, etc.). Is there a way to make a data column editable or not depending on some dynamic condition? For example, if the user inputs some value in the page (not in the grid), then when he tries to edit the grid, a column should (or not) be editable, i.e., the EditTemplate is used (or not). Is that possible? Thanks in advance.

The EditTemplate is always rendered during edit mode. You can however add some condition in it to control what it displays:

<EditTemplate Context="data">
    @if (editable)
    {
        <RadzenTextBox @bind-Value="data.FirstName" />
    }
    else
    {
        @data.FirstName
    }
</EditTemplate>