eatuf.blogg.se

Vb net 2010 display combobox selecteditem
Vb net 2010 display combobox selecteditem






vb net 2010 display combobox selecteditem vb net 2010 display combobox selecteditem

I do not know how to update the combobox. Those two updates every time I select a new row in the Listview. You can see in my code, I have made 2 textboxes, with ProjectId and ProjectName. I get the items by binding Projects_GetActive to the combobox (whitch succeded). And I also want it to, if there isn't any projectId for a specific Category it should leave the combobox blank (or something to show here is no project) Now I want to bind the ListView (LivCategories) with the ComboBox, so when selecting af Category, it shows me the project in the combobox for that specific Category. The combobox I take an ItemsSource of a list of Projects. It works fine except I cann't update the combobox.

vb net 2010 display combobox selecteditem

In the CategoryViewModel I have made an property SelectedCategory. The list in the listview is of Category and here I have a key of ProjectId and a key of ProjectName. Each time I click on one row in the ListView it should show in the controls (textboxes, labels and so on). Everything works fine, when not using the combobox. I have a usercontrol with an listview and some controls. I have problems getting the combobox to work.








Vb net 2010 display combobox selecteditem