Preselect item in DropDown and DropDownDataGrid

I am trying to set a dropdown and dropdowndatagrid to a startvalue, but I get the following error in both cases.
What am I missing?

cannot convert from 'Microsoft.AspNetCore.Components.EventCallback' to 'Microsoft.AspNetCore.Components.EventCallback'

<RadzenDropDown @ref="qLevel"
@bind-Value="@QVersionId"
TValue="int"
Data="@(getQLevelResult.Select(x => new { QVersionId = x.Item2, Name = x.Item1 }))"
TextProperty="Name"
ValueProperty="QVersionId"
Placeholder="Choose level"
style="width: 100%"
Name="QLevelId">

1 Like

Can you check the type of QVersionId? Is it int? You can try also to set TValue="dynamic".

2 Likes

Thank you! That was the problem.