RadzenDropDownDataGrid bind to string collection

Hi:

I need to bind the RadzenDropDownDataGrid to a list of strings.

I tried something like this but the grid shows empty.

<RadzenDropDownDataGrid TValue="string" FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive"
FilterOperator="StringFilterOperator.StartsWith"
AllowFiltering="true"
AllowClear="true"
Data=@addressList
@bind-Value=addr />

Is there a way to achieve that.

Thanks in advanced

Hi @Portal_Traker,

You need to specify the Columns and then use the Template of a column to display the value.

<RadzenDropDownDataGrid TValue="string" Data=@addressList
@bind-Value=addr>
   <Columns>
       <RadzenDropDownDataGridColumn>
           <Template>
               @context
           </Template>
       </RadzenDropDownDataGridColumn>
   </Columns>
</RadzenDropDownDataGrid>

Thanks for the info.