Exception when using sortorder and 'System' property in datagrid

Hi,

After upgrading to 6.x the following line in a RadzenDataGrid gives an exception.
<RadzenDataGridColumn TItem="MyClass" Property="Version" SortOrder="SortOrder.Ascending" />

System.ArgumentException: '@Version' is not a member of type 'MyClass' (Parameter 'propertyOrFieldName')
In 5.x this was not a problem.

The @ is added here: https://github.com/radzenhq/radzen-blazor/blob/ab1af0ce286183601d5e0055ba8f874c9cdaac53/Radzen.Blazor/Common.cs#L3163 when a System type is found.
In 6.x it is not possible to use a property that is also in the System. namespace.
When the SortOrder is removed everything works fine, because this code path is not used.

The change in 6.0 to remove Dynamic Linq is probably the cause.

Fixed immediately:

1 Like