Questions tagged [selectionchanged]

263 questions
0
votes
1 answer

Get IStructuredSelection Name

I am using tree viewer to display a list of elements on the selection changed listener I want to get the name of the selected node. Here is my selection listener treeViewerSwaComponents.addSelectionChangedListener(new ISelectionChangedListener()…
Wearybands
  • 2,438
  • 8
  • 34
  • 53
0
votes
1 answer

Get event trigger

I am using WPF ListBox, binding the ItemsSource to an ObservableCollection. I subscribed to the SelectionChanged event, which will notify me when the user select/deselect any ListItem. Now, can I get whether the selection in the ListBox was changed…
Ayman
  • 1,387
  • 4
  • 20
  • 35
0
votes
1 answer

Unselect WPF DataGrid when ItemsSource changed

I have the following DataGrid in WPF :
Lucifer
  • 2,317
  • 9
  • 43
  • 67
0
votes
2 answers

how do I see if Combobox Selectionchanged event is triggered manually or by binding (WPF - MVVM)

I'm in a situation where I need to empty a property in my model whenever someone changes a value in a combobox. A side effect of this is, that whenever I change the value of the Combobox-Bound variable, the Combobox SelectionChanged event is…
user1841243
  • 1,663
  • 2
  • 19
  • 35
0
votes
1 answer

How do I apply an excel macro with a selection change event to all sheets?

The macro is not working if I make it run on an active sheet in the code even if it is only attached to one sheet, but it works only for that sheet if I type only its name for the variable I'm using. How do I make it run on all sheets with selection…
Harish Vangavolu
  • 965
  • 2
  • 12
  • 27
0
votes
0 answers

Scala ListViewSelectionChange event outputs unexpected range

I'm currently trying to use a scala.swing.ListView in a Scala application. I basically want to get the selected item of a ListView, as soon as the selection changes. Here a sample which can be pasted into the Scala prompt. import…
Emiswelt
  • 3,909
  • 1
  • 38
  • 56
0
votes
1 answer

Is it possible to let only a user selection trigger a SelectionChanged event on a DataGridView?

SelectionChanged methods are triggered when the selection is changed by program. So, for example, calling dataGridView.ClearSelection() or dataGridView.Rows[0].Selected = true would call the method private void dataGridView_SelectionChanged(object…
jacobz
  • 3,191
  • 12
  • 37
  • 61
0
votes
1 answer

Win Forms combo box combination issue

I have a windows application where in one of the forms, I have two combo boxes. Both the combo boxes are filled with the same data. (e.g. A, B, and C as data items). The data comes from the database and is the bound to these combo boxes. What I…
0
votes
1 answer

How to implement my own SelectionChangedEventHandler in c#

I am working in silverlight and under a very strange situation that i need to implement my own SelectionChangedEventHandler handler function .The reason to do so is: I have my situation like this : private static Grid GenerateList(Parameter…
Sss
  • 1,519
  • 8
  • 37
  • 67
0
votes
1 answer

Execute SelectionChangedEvent from code behind

public ICommand SelectionChanged { get { return new RelayCommand(param => this.ExecuteSelectionChanged(param)); } } private object ExecuteSelectionChanged(object param) { var e = param as SelectionChangedEventArgs; var…
zooney
  • 341
  • 6
  • 25
0
votes
0 answers

How to react to LVN_ITEMCHANGED notification only when user finishes selecting action on multipe selection CListCtrl?

I have a dialog with two list controls and one custom control with some graphic preview. The first has a list of one kind of entities (1a, 1b, 1c,...) and the second has a list of another kind of entites (2a, 2b, 2c,...), both of them are…
0
votes
0 answers

WPF how to use SelectionChanged

In WPF i have a TabControl and i've attached it a SelectionChanged event handler: when i select a TabItem i load some data in a DataGrid. The problem is that if i click on some row in the DataGrid, wpf call again the TabControl SelectionChanged. How…
Tom
  • 4,007
  • 24
  • 69
  • 105
0
votes
0 answers

Qt slot for selectionChanged selectedIndexes DEBUG_ASSERION_FAILED

I've got a problem with my Qt 4.8 slot which is connected that way: connect(ui->objectTree->selectionModel(), SIGNAL(selectionChanged(const QItemSelection&, const QItemSelection&)), this, SLOT(syncGuiWithTreeSelection(const QItemSelection&, const…
rherzog
  • 51
  • 9
0
votes
1 answer

Listbox SelectionChanged firing in error when window layout changes

I've got a ListBox on a window with some other components. When I change the Visibility of these other components, the ListBox fires its SelectionChanged event with the new selectedIndex = 0. That's very undesirable. (It doesn't happen if you insert…
thund
  • 1,842
  • 2
  • 21
  • 31
0
votes
0 answers

DataGrid Selection changing when cell contains Extended ListBox

I have a DataGrid. Within one of the cell's of the DataGrid is a ListBox with its property set to extended. When I first select an item in the listbox, the row for the DataGrid gets selected. However, if I want to multi-select another item in the…
Eric Gurney
  • 263
  • 2
  • 11