Questions tagged [selecteditem]

selecteditem is a property used to identify the currently selected item in a collection

selecteditem is used to check the state of the associated UI control in several APIs

References

1008 questions
-1
votes
2 answers

Read and change combo-box selected item with 4 different possible values

I have a multi-line textbox that the user can type into; the contents of which are supposed to drive the currently selected item in a combobox. I have existing code that works for two items currently (Yes & No); however, I now need to make this…
Viper151
  • 30
  • 8
-1
votes
1 answer

Get Selected Item ID of ListBox C++

Im trying to make one simple program, that list few names in ListBox, and when selecting one of them, and clicking on one button should be load the data in few TextBoxes... All i need is the ID of the selected item of that ListBox because the data…
Nicox
  • 83
  • 3
  • 11
-1
votes
4 answers

PHP Dropdown Option "Selected"

I am programming a webpage which uses a select option dropdown menu to change the language in a MySQL table. There are currently only two language options. I simply want the menu to reflect the current value from the MySQL table. I retreive the…
RootWannaBe
  • 363
  • 1
  • 3
  • 7
-1
votes
4 answers

WPF ListView SelectedItem Binding Issue

now i searched for 2 Days why my Binding does not work. I have a ListView inside a PopUp. I Want to bind the SelectedItem to the Code-Behind. I've done that 1298736 times before, but in this case it does not work. Here is the Button that opens the…
S.L.
  • 1,056
  • 7
  • 15
-1
votes
1 answer

get value of f:selectItems from view in bean

i have a selectedOneMenu i wann like to get the value selected into my java code to do some work with this value so this my xhtml:
Hamdi Dousdou
  • 57
  • 1
  • 12
-1
votes
2 answers

When using a CollectionViewSource, when the Source is updated, the first item in the bound ListBox is automatically selected

When binding a ListBox to a CollectionViewSource (for view filtering), when re-binding to the Source property, the ListBox automatically selects the first item (causing the SelectedItem binding to also fire). I do not want the first item in my list…
qJake
  • 16,821
  • 17
  • 83
  • 135
-1
votes
1 answer

DataGrid row selection won't trigger property changed

i have a datagrid, when i select a row the property that is bound to selected item is being called correctly but if if i click on the same row again(unselect it) property changed is not called. any idea why? the ItemsSource object implement…
user1531186
  • 323
  • 1
  • 7
  • 20
-1
votes
1 answer

Java JComboBox.setSelectedItem() not updating dropdown list

I want to make function updating current item in JComboBox: @Override public void updateId(String id) { boolean old = notify; notify = false; comboBox.setEditable(true); comboBox.setSelectedItem(id); comboBox.setEditable(false); …
drag0nius
  • 185
  • 2
  • 10
-2
votes
2 answers

Create ListViewItem based on ComboBox SelectedItem in MVVM

I have a StackPanel that contain a ComboBox and several other controls like Label and TextBox(not shown in the example below). I would like to add several other controls to the end of thatStackPanel based on the user selected item from the…
dov
  • 27
  • 7
-2
votes
1 answer

Gridview when pressed back button going to first item

I used Gridview. It has 58 items. For example when i enter to 48th item and press back button gridview goes to 1st item. I want to say goes up to top. After i again have use scroll to go down items. I mean how to make gridview when press back button…
-2
votes
2 answers

Why do CheckedListBox's SelectedItem work differently depending on how the CLB was populated?

I have two CheckedListBoxes that look the same (except for the contents). I load one like so: private void PopulateReportsListBox() { checkedListBoxReports.Items.AddRange( …
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
-2
votes
2 answers

Listbox deselect top item

I have a listbox and I want to deselect the first selected item in the list when the loop is run because it should process a list item after item. Currently I'm using this: var list = new object[listBoxTracks.SelectedItems.Count]; for (int i = 1; i…
Jalau
  • 303
  • 1
  • 2
  • 11
-2
votes
1 answer

How do I bind DisplayMember of combobox as Multibind, a combinaiton of two properties

I have a combobox bound to list> I am here trying to find if we can tell combobox by some means that display member is MyObj1.Prop1 concatenated with MyObj2.Prop2 I cant find a direct way to do it, can do it with converters…
Muds
  • 4,006
  • 5
  • 31
  • 53
-2
votes
1 answer

Add ChildItem to TreeView's SelectedItem

I have a TreeView in my WPF application. The user can create categories in this TreeView. Now I want to add an Item to the selected item of the Treeview. How do I add a childItem to the selected item in a Treeiew? The following code doesn't work,…
daJbot
  • 59
  • 1
  • 8
-2
votes
1 answer

call method foreach selected item in a listview

I want to call a method that takes in a string for each selected item in a listview. foreach (string item in lvwPoliciesAvailableForHoldBack.SelectedItems) { Database.HoldBackPolicy(item); } I'm…
JJ.
  • 9,580
  • 37
  • 116
  • 189
1 2 3
67
68