Questions tagged [selectionchanged]
263 questions
0
votes
2 answers
working with Spark Datagrid selectionChange and Keyboard Array
I have a Spark DataGrid with a listener to selectionChange event. The function listening to the dataGrid checks if the new selected row has a different partner_id from the partner loaded. If it is different, it calls the server (PHP) and asks for…

Marco Aurélio Deleu
- 4,279
- 4
- 35
- 63
0
votes
1 answer
Access control inside a listbox without triggering selectionChanged event
For my listbox in windows phone I added a checkbox for each item with the help of this tutorial (option 2). Before I already had a SelectionChanged event for my listbox. How do I prevent firing the event, when the user just checks the checkbox? The…

Robin Wieruch
- 14,900
- 10
- 82
- 107
0
votes
1 answer
.NET 4.0 DataGridCombobox SelectionChanged issue
I have a requirement in my program that the object bound (from ViewModel) in a Combobox is updated as soon as an item is selected in the combobox. Currently, the object only updates once the edit is committed by either pressing Enter or leaving the…

Josh
- 101
- 1
- 4
0
votes
2 answers
Get selected List Box item in user control from Window
I have a User control with a list box.
This User control located on my window.
how can I detect and get selected item from list box in user control?
I previously tried this but when i select an item from list box e.OriginalSource return TextBlock…

KF2
- 9,887
- 8
- 44
- 77
0
votes
0 answers
Add an item to ListBox without access to its ItemsSource
I have just upgraded a project from .NET 3.5 to 4.0 and have found that ListBoxes behave differently. Items are sometimes added to ListBoxes from the code behind using
this.myListBox.SelectedItem = new MyItemType();
This no longer fires the…

Coder1095
- 828
- 10
- 25
0
votes
0 answers
DataGrid SelectedIndex Changed Event Handler
I have a WPF DataGrid which I'm trying to auto-scroll using this code:
private void mydatagrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
mydatagrid.ScrollIntoView(mydatagrid.CurrentItem);
}
The problem I'm having is that…

BCA
- 7,776
- 3
- 38
- 53
0
votes
1 answer
Combobox SelectionChanged event not seen?
In a Windows 8 Metro application, I have a Combobox and I would like to call a method every time I select something else from the list.
I have my Method, and with ValueChanged="MyMethod" of a Slider, it works fine.
However, when i try with a…

alltestgreen
- 149
- 1
- 12
0
votes
1 answer
Eclipse RPC SelectionChanged listener on event
How can I pass text.getText() to selectionChanged ? Casting seems not working. I am using it on button press. This is full class, but StackOverflow is not letting me put here more text without explaining it line by line..
Listener listener = new…

Seb
- 100
- 6
0
votes
1 answer
WPF DataGrid SelectionChanged Row Color
I would like change the color of the whole row if a condition is true in the SelectionChanged Event from a WPF DataGrid. I can change the color in the LoadingRow Event if I use the arg DataGridRowEventArgs e. I can use e.Row.Background = new…

Sven Gebien
- 3
- 1
- 4
0
votes
3 answers
ASPxGridView GetSelectedFieldValues not working
I want to select a row and do something with it's Id column, however it isn't working and I'm running into the error mentioned at the end.
Heres what I got -
The ASPxGridView snippet -

neuDev33
- 1,573
- 7
- 41
- 54
0
votes
1 answer
Listpicker: fire SelectionChanged
I am setting selecteditem manually
public pageXXXX()
{
InitializeComponent();
this.cargaLista();
}
private void cargaLista()
{
this.lPickTipo.SelectedItem = this.lPickTipo.Items.OfType().First(i…

aco
- 819
- 4
- 15
- 32
0
votes
2 answers
Selecteditem on combobox null reference exception
I want to use SelectedItem to set selection to a combobox from code.
I can only get it to work by using SelectedValue. SelectedItem will throw a null reference exception with this at the top of the stacktrace:
at…

Michel van Engelen
- 2,791
- 2
- 29
- 45
0
votes
2 answers
ListView selection change doesn't remove an old item
I have a strange behavior with my WPF ListView Control.
ListViews ItemSource is Observable collection.the ItemSource is updated periodically.
When I'm selecting one of the item and then selecting other item and no item updated, everything is OK.…

Igal
- 1,084
- 2
- 13
- 33
-1
votes
2 answers
Silverlight ComboBox selection changed or reselected event
On a Silverlight ComboBox, the SelectionChanged event does not fire when you open the dropdown list, then click on the currently selected item. What's the best way to have an event/method trigger when this happens? (in addition to anything that…

Tim S.
- 55,448
- 7
- 96
- 122
-1
votes
1 answer
WPF DataGrid SelectionChanged and DataGridCheckBoxColumn
I have a datagrid to which I bind some items. I only allow selecting rows (single item) on this grid.
This grid has a DataGridCheckBoxColumn and a SelectionChanged event.
The problem is that when the user presses a checkbox, it also selects the row…

SaphuA
- 3,092
- 3
- 39
- 58