question

Luna-2837 avatar image
0 Votes"
Luna-2837 asked YijingSun-MSFT commented

Web Forms Combobox default value

Hi

How I can show as selected value in combobox, object that is not on combobox list?
I have object list:

 Id
 Name 
 Active

and combobox should show only active object on list but can also show as selected item with Active:false at first (like default value from another object)

I have something like this:

    <Combobox ItemSource="Binding Source={StaticResource List}}" DisplayMemberPath="Id" SelectedValue="{Binding Id}">
dotnet-aspnet-webforms
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @Luna-2837 ,
What's your meanings? You want to show a default value just like '--select--' in the top? Could you tell clearly?
Best regards,
Yijing Sun

0 Votes 0 ·

0 Answers