Questions tagged [selecteditemchanged]

28 questions
0
votes
1 answer

Retrieve mysql database value into JComboBox

I use the following code to retrieve data from my database to a JComboBox. It was working properly. My problem is when I execute this code, if I click any items in jCombobox I need the StudId for that clicked item in the textbox, but this code…
javabeginner
  • 43
  • 2
  • 10
0
votes
1 answer

PowerShell.WindowsForms.Change ListBox via SelectedItemChanged in ComboBox

I went on to develop the script. Now the goal is this: When selecting a department in ListBoxDepartments, the SubDepartments in ListBoxSubDepartments should be displayed. I did it according to the principle mentioned above. But it doesn't work out.…
0
votes
1 answer

DataGrdiview ComboBox change result

My project has a DataGridView with Combobox columns and this column has two item as "Punch Window" and "Window Wall" as you see in picture. I am using dataGridView1_CellEndEdit event and these are my codes for (int i = 0; i <…
Gokhan
  • 453
  • 4
  • 10
0
votes
1 answer

How to get ALL DataGrid's selected Item. (MOST up to date)

I am currently trying to get a collection of selected datagrid rows selected by the user (multi row selection on). Each row is binded to a visual object which i want to show as selected" So for the data grid I added this style:
Kev84
  • 827
  • 3
  • 15
  • 26
0
votes
0 answers

WPF Datagrid ERROR: System.ArgumentOutOfRangeException: 'Index was out of range. Must be non-negative and less than the size of the collection.'

I already searched for a solution on this topic. However, I was unable to find one. I trying to implement the solution answer for this question, however when adding a new row to the datagrid, I get "System.ArgumentOutOfRangeException: 'Index was out…
dsalas
  • 139
  • 1
  • 2
  • 8
0
votes
1 answer

Specified cast is not valid on listview item c#

I basically have a listview, with this function when i click on a listview-item. When i run this and click on the item, i get the following display alerts before my app crashes. DisplayAlert 1, then DisplayAlert 2, then DisplayAlert 1 and right…
Jazz W
  • 139
  • 2
  • 12
0
votes
1 answer

WPF: Clicking on a DataGrid Row inside a TreeView does not trigger TreeView.SelectedItemChanged

I am new to WPF, and suffering with an existing code. We have a tree, which has many branches/leaves. In one branch we have a DataGrid. If we click on the empty area of the grid (where no rows are), then TreeView.SelectedItemChanged called properly.…
Zoli
  • 841
  • 8
  • 31
0
votes
1 answer

Does itemChange respond to a coded change?

Assuming that it has been enabled, will itemChange be called if the change is induced by the program itself via, for example, a setPos?
Francesco
  • 481
  • 2
  • 4
  • 16
0
votes
1 answer

NullReferenceException on TreeView node deselect

I have two TreeViews in my program that deal with SelectedItemChanged in the same way. The problem is that one works fine and the other one throws a NullReferenceException. The exception gets thrown in one of the trees when a node is…
Eric after dark
  • 1,768
  • 4
  • 31
  • 79
0
votes
2 answers

Treeview SelectedItemChanged is not fired with custom data

I am trying to represent information from related datatables customers<-products into a treeview. Due to performance issues I wanted to use Backgroundworker, but there is a gotcha - no GUI units (also TreeViewItem in other thread than STA…
user1608721
  • 136
  • 1
  • 9
0
votes
3 answers

How to call treeView.SelectedItemChanged programmatically

In my program I would like to call to a SelectedItemChanged event using c# code-behind, I am just unsure about what to pass as parameters. This is for a TreeViewItem. //Gets selected item in TreeView private void TreeOne_SelectedItemChanged(object…
Eric after dark
  • 1,768
  • 4
  • 31
  • 79
0
votes
2 answers

Combobox and Gridview

If we select the dropdown list Item then I want to display the Item Particulars in the Gridview Please Help me
0
votes
1 answer

XamComboEditor SelectedItemChangedEvent firing non-stop in XamDataGrid

I have bound XamComboEditor's in two columns of XamDataGrid. When I select an item from XamComboEditor1, I would like to bind specific items to XamComboEditor2. I have attached SelectedItemChanged Event to XamComboEditor1. The event fires non-stop…
user977606
  • 95
  • 2
  • 11
1
2