Top "Selectedindex" questions

In HTML DOM, the selectedIndex property sets or returns the index of the selected option in a dropdown list.

AngularJS Select element set the selected index

So i'm using angular and this is my select html: <select id="date" ng-model="selectedDay" ng-change="setDate()" > <…

javascript html angularjs default selectedindex
asp .net dropdownlist selectedindex not working

I have the following piece of code: DataRow CreateRow(DataTable dt, string name, string country) { DataRow dr = dt.NewRow(); dr["…

asp.net drop-down-menu selectedindex
c# ASP.Net Dynamically populated DropDownList loses selected index on submit button

I dynamically populate a dropdownlist of all 50 states from an ArrayList on PageLoad. When the user selects the SUBMIT button (…

c# asp.net drop-down-menu selectedindex
Set selected index in a listview

I have a listview on a Win Forms where I need to programmatically set the selected index. Apparently, ListView does …

c# winforms listview selectedindex
Getting the SelectedIndex of a child node in a TreeView

I am currently working on a wpf project in C#. I have a treeview created that has parent nodes with …

c# wpf treeview selectedindex
programmatically select next listbox item

I'm trying to program two buttons to imitate the up/down arrow key behavior, meaning that when I press the …

c# listbox selectedindex
Items on ListBox show up as a class name

The problem is as follows: I connected the ListBox with a list of elements of some custom class (List<…

c# winforms listbox selectedindex
WPF: ComboBox SelectedIndex = -1?

I am using a MVVM Wizard with several pages. When I set a value in the combobox and go to …

wpf combobox selectedindex
selectedIndex is undefined with jQuery in dropdownlist

I have an ASP.NET dropdownlist like this: <asp:DropDownList ID="ddlMyDropDown" runat="server"> <asp:ListItem>…

javascript jquery drop-down-menu selectedindex
ComboBoxItem to full width of ComboBox, when using SelectedIndex, or navigating keyboard?

Following XAML causes the "My stuff" being centered of ComboBox until I open the ComboBox, when it correctly stretches itself. &…

wpf xaml combobox selectedindex