Skip to content

Commit

Permalink
Merge pull request #1627 from riganti/fix/autoui-edittemplate
Browse files Browse the repository at this point in the history
Removed creation of EditorTemplate when Editable(false)
  • Loading branch information
acizmarik committed Mar 29, 2023
2 parents 0fef041 + d48476d commit 3a372a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AutoUI/Core/Controls/AutoGridViewColumn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static GridViewColumn Replace(IStyleMatchContext<AutoGridViewColumn> col)

// editor

if (props.EditTemplate is null)
if (props.EditTemplate is null && (props.IsEditable.HasBinding || props.IsEditable.ValueOrDefault == true))
{
control.EditTemplate = new CloneTemplate(
AutoEditor.Build(new AutoEditor.Props()
Expand Down

0 comments on commit 3a372a1

Please sign in to comment.