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…
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…
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…
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…
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…
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…
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);
…
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…
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…
I have two CheckedListBoxes that look the same (except for the contents). I load one like so:
private void PopulateReportsListBox()
{
checkedListBoxReports.Items.AddRange(
…
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…
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…
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,…
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…