Hi,
When using AuthorizeView to conditionnally display some columns, the columns inside AuthorizeView will be displayed at the end of the DataGrid no matter where they are declared in the code.
For example the "Second" column will be display as the last column :
<GridColumn Field="@nameof(dto.First)" HeaderText="First" /> <AuthorizeView Policy="IsAdmin"> <Authorized>
<GridColumn Field="@nameof(dto.Second)" HeaderText="Second" />
</Authorized> </AuthorizeView>
<GridColumn Field="@nameof(dto.Thrird)" HeaderText="Third" />
|
Is there a way to keep the right order and keep using AuthorizeView ?
Regards.