I have a ContextMenu that is displayed after a user right clicks on a ComboBox. When the user selects an item in the context menu, a form is brought up using the ShowDialog() method.
If frmOptions.ShowDialog() = Windows.Forms.DialogResult.Cancel Then
LoadComboBoxes()
End If
When that form is closed, I refresh all the...
I am developing a program which gets all Clearcase regions (basically strings) & adds them to Combo box. I compare an existing clearcase region string in newly added items in combo box & if it is found then I want to select it, but because nothing is selected for the first time, selectedItem is null & selectedIndex = -1.
when I assign 0...
I have a dropdown in a web page with 3830 elements in it. I know, excessive but whatever.
In jquery I get the selected option value using the statement:
$( "#institutionCombo :selected" ).val();
There is a noticeable pause before the selection is found. Once I get that value I insert it into a textbox on the page, so I know how fast. ...
Hi
I'm new to C# and I'm starting to learn how to program
I'm learning to program into the Visual Studio Microsoft Edition where I use the WindowsApplication instead of the Console.
While trying to make this code, I encountered this command:
Selected Index and Selected Item
and I would like to know the difference between the two.
I'm qu...
I am trying to keep the selected item (datakey) in a gridview selected after any operation, such as sorting. I have code that is keeping it selected, but sometimes the item's last position (index before it was sorted) remains selected, along with the new index for the selected item.
Any time it is selected, that item is bound to a deta...
Hi,
I have a DataList displayed on a (Asp.Net3.5) page which the user can select from. The datakey value of the selected row is then stored in the database.
If the page should be revisited by the same user at some point in the future the selected datakey value is retreived from the DB. I would like to use this datakey value to highligh...
In a VB.Net application, how can I either:
Find the dropDownList selectedIndex position of something just added to a database.
Have a form restart with the most recently-added entry showing in the DropDownList, by way of modifying the inline SQL query to display by date/time added.
...
Is there a difference between these two lines of code?
self.tabBarController.selectedViewController = [self.tabBarController.viewControllers objectAtIndex:1];
and
self.tabBarController.selectedIndex = 1;
My app just crashed on the top statement so it might have some memory issues. Are there any advantages of one method over the ot...
I currently have an iPhone application with a tabbar and multiple viewcontrollers. All the views are designed in Interface Builder. I'd like to be able to get the currently selected index of the tabbar from the viewcontroller, but for some reason this property returns (null).
I called the following in the viewDidLoad function of my view...
Hi all,
let's say i have list looking like this:
<select name="name" id="id">
<option value="10176232332">David</option>
<option value="10187232332">Sven</option>
<option value="10202232332">Ololf</option>
<option value="10219232323">Jan</option>
<option value="10230232323">Gustaf</option>
</select>
Using JQuery, ...
Hi
Is it possible to change the data source of a dropdown list in a gridview from another dropdown list selected index changed method in the same gridview?
for example I have a dropdown that needs to change its contents depending on what is chosen in the previous cell of the gridview, which is also a dropdown list.
Any Help would be...
Hi,
I am trying to use a WPF combo box to change a timer.
Currently, I have in an observable collection
15 mins
30 mins
45 mins.
1 hour.
If the user clicks 15 minutes, then a timer will start counting down.
But my problem is, once the user clicks 15 minutes, the combo box won't let me pick 15 minutes again to reset it.
I have to click...
How do you set the selectedIndex on a <g:select> tag with a value from the list? I have a page that allows you to add a record. the page then goes to a view containing a g:select and i want the g:select to default to that item i just inserted into the database.
I tried passing the new object in the flash but i can't figure out how to ge...
From the code below I am getting a cell value from the selected row to a dataGridView:
string Kategoria_ = dataGridView1.CurrentRow.Cells[1].Value.ToString();
Then I need to convert to int:
int category = Convert.ToInt32(Kategoria_);
And putting this number as an index to the combobox:
cmbCategory2.SelectedIndex = category;
Issu...
When I use a select box with a size atribute greater than 1 i.e.
<select size="3">
<option value="a">a</option>
<option value="b">b</option>
<option value="c">c</option>
<option value="d">d</option>
</select>
If user does not select any item I do get a selectedIndex of -1, as expected.
When i use a 'classic' select box wi...
Hi,
I have this code and I keep getting undefined if I test the selectedIndex.
alert(x.selectedIndex);
So, setting it is also a problem.
Does anyone possibly see what the problem is?
//makes list off tags
function ttyps_select(data,naamsel,selectid, containerid){
if(!ttyps.length){
jQuery.each(data, function(index, itemData) {...
I have a ComboBox:
<ComboBox Name="iComponentFieldComboBox" SelectedIndex="{Binding ComponentFieldSelectedIndex, Mode=TwoWay}" Height="23" Margin="132,0,280,38" VerticalAlignment="Bottom">
<ComboBoxItem Name="item1">item1</ComboBoxItem>
<ComboBoxItem Name="item2">item2</ComboBoxItem>
<ComboBoxItem Name="item3">item3</ComboBo...
I've got DropDownList in UpdatePanel as shown below:
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:DropDownList ID="DropDownList1" runat="server">
</asp:DropDownList>
<div>
Index: <asp:Label ID="Label1" runat="server" Text=""></asp:Label>
...
I have a ListView control set up in details mode with 5 columns. It is populated by code using the following subroutine:
For j = 0 To 14
cmd = New OleDbCommand("SELECT TeacherName, ClassSubject, BookingDate, BookingPeriod FROM " & SchemaTable.Rows(i)!TABLE_NAME.ToString() & " WHERE (((BookingDate)=" & Chr(34)...
I have two (or more) ListView's that are side by side. I need them to act as one so the selected index of each is always the same.
Thanks!
Andrew Davis
NASA - Kennedy Space Center
Kettering University Co-op
...