Questions tagged [selectionchanged]
263 questions
0
votes
4 answers
WPF ComboBox SelectionChanged and DropDownClosed events is not working
I am trying to call method by linking it to the Selection changed event and DropDownClosed event of the Combobox in WPF but when i change the item in combobox it is not calling the function it suppose to (in my case OnMyComboBoxChanged1 and…

mechbaral
- 103
- 7
0
votes
0 answers
How to update additional dependent fields when dropdown selection changes
I have written several custom validation classes that permit comparing pairs of dates to see if they are valid, e.g. end date on or after start date. See mvc4 data annotation compare two dates. These work well when used within a single model. But I…

Jeffrey Roughgarden
- 447
- 4
- 11
0
votes
1 answer
Selection change/add items with ComboBox in WPF
Simple questions can be the hardest sometimes. 3 things I am trying to understand;
1. Allow a selection change within a combobox to help populate items in 2nd combobox.
2. Clear items in 2nd box before populating items.
3. Adding items in 2nd…

Megamidget3
- 59
- 10
0
votes
3 answers
How can I detect in a DataGrid if row is clicked and change its column from true to false and vice versa?
I'm working on a small WPF application, when I click on a row I'm making my checkbox column selected/unselected. This is how my rows look:
And here is my code:
private void dtgTest_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
…

Roxy'Pro
- 4,216
- 9
- 40
- 102
0
votes
0 answers
Form_load selects line (richtextbox), form temporarily loses focus, returns back with entire richtextbox selected
I have a form_load thats selecting a string in a RTB and it works perfectly, makes the line I specify highlighted yellow and all other lines untouched. when I click a button and load another form and use it then close it, the original form now has…
0
votes
1 answer
SelectionChanged event not firing for derived ComboBox control - WPF
I have a derived Combobox control. In Autogeneratingcolumns event, I have assigned FrameworkElemnt of derived combobox as shown below:
var templateColumn = new DataGridTemplateColumn
{
CellTemplate = new…

Ani
- 3
- 2
0
votes
2 answers
c# wpf listBox selectionchanged is wrongfuly (for me) fired when removing an item from obseevable collection which was already selected when removed
hey guys i'v been trying to figure it out for 2 days and no luck.
i have an observableCollection that stores values and presents them in list box.
i want to check item int listbbox(lbBookDetails) and remove it from my collection(myBooks) using…

Ronen
- 45
- 6
0
votes
1 answer
JQuery Adding new Row in Table based on Selection, but Latest selection override the whole table everytime
I am not good at javascript framework I am doing this project in Laravel
if required anything from that code where it's calling I will provide
What I am trying to achieve is that when the user selects a value from drop down which is the product a…

Malik Awan
- 115
- 15
0
votes
0 answers
Access DataGridView without getting errors
I have a DataGridView placed on a Panel, and the Panel's visible property is initially set to false. to set the Panel's visible property true, a button pressed.
This is the code that runs:
using(SqlConnection c = new SqlConnection(connStr))
{
…
user8245301
0
votes
2 answers
My selectionchanged event is not updating the view, What am I missing?
All fields are marked as TwoWay on databinding, but its obvious I have something wrong. What I have is a page showing a view to add new Devices on one side of the view, and a list of Devices on the other side.. What I'm trying to do is when…

ekgcorp
- 165
- 1
- 11
0
votes
1 answer
How to run Method that depends on Combobox value and called through Combobox SelectionChanged event
I have multiple TextBoxes for each field on my datagrid, which multi-filters my data based on these textbox entries. This filtering is handled by a method called ApplyFilter() which works fine.
Datagrid is populated by queries from MS SQL Server…

Tehscript
- 2,556
- 2
- 13
- 23
0
votes
1 answer
Qt: Passing an argument in the selectionchanged() signal
I want to pass a parameter to the selection changed SLOT like the following:
connect(selectionModel, SIGNAL(selectionChanged (const QItemSelection &, const QItemSelection &, MyParameter)),
this, SLOT(OnSelection(const QItemSelection &, const…

Khaled
- 59
- 1
- 12
0
votes
2 answers
Changing Color based on value
I'm making a form with three buttons on it and a small spreadsheet of data. Each button is going to correspond with a different range of acceptable results. When you push the first button, I want it to highlight the results in the sheet as green if…

ladymrt
- 85
- 3
- 16
0
votes
1 answer
Click/focus on a ListBoxItem's content doesn't bubble up
I've got a ListBox that's declared like this:
…

Yoda
- 539
- 1
- 9
- 18
0
votes
1 answer
How to get OnSelectionChanged ListBoxItem background change when modifying the data at the same time using a ListBox control?
I have a ListBox control with an ObservableCollection instance as the control's ItemsSource property.
Everything works fine, but when I handle the control's OnSelectionChanged, my business logic modifies the collection's data and I no longer get…

HW2015
- 81
- 2
- 11