combobox

Silverlight Toolkit context menu of ComboBoxItem not showing for selected item.

Desired Result: Create a quick XAML example of Silverlight 4 ComboBox, where each ComboBoxItem is made up of multiple TextBlocks. Every Textblock in the ComboBoxItem has it's own unique (Silverlight Toolkit) ContextMenu item. Rightclicking the Textblock brings up the relate context menu. Working properly: I have successfully created t...

Excel 2010 add yes/no combo box to the each cells in one column.

Hello, subject. How can I to do it ? thanks. ...

WPF: binding nested properties to combobox

Guys I'm trying to bind a "second level" property of my class to a combobox. What am i doing? I'm assigning a ObservableCollection to be the datacontext of the grid that hold all my textboxes and one combobox. The Hierarchy can be described as public class ListaLogradouro : ObservableCollection<Logradouro> { } public class Logradou...

WPF ComboBox Bound to Collection of UserControls Not Showing Selected Item's Text

I have a ComboBox that is bound to an ObservableCollection of custom UserControls. Each user control has a Tag value set and the ComboBox' DisplayMemberPath is set to "Tag". This correctly displays the Tag of each UserControl in the drop down list when the ComboBox is clicked, however when an item in the list is selected and the drop dow...

WPF ComboBox, force input to UpperCase

I have an editable WPF ComboBox with TextSearchEnabled. I need to force the user's text input to uppercase when they type to filter the ComboBox. I was thinking of modifying the textbox that is part of the control (named 'PART_EditableTextBox') to set CharacterCasing="Upper", however I can't quite figure out how to do this. Do I need ...

WPF Binding ADO.Net Entity Framework to a ComboBox

Hi All I am working on a small system for a summer camp in WPF. I have a database that is linked via ADO.Net Entity Framework. It contains two tables; Campers & Bunks. The structure is as follows: Campers CustomerID, INT (Key) Name, NVARCHAR BunkID, INT Bunks BunkID, INT (Key) Name, NVARCHAR There is a foreign key relationship ...

Silverlight ComboBox: Make Selected item Bold?

Hi all, I would like to be able to make the selected item in a Silverlight ComboBox appear in bold -- what's the best way to go about doing this? Thanks! ...

WinForms ComboBox problem

In a Windows Form Application, I have a ComboBox1 which gets initialized in InitializeComponent() function. I add the values into it in a different function. snippet: public form1() { InitializeComponent(); addDataToDropDowns(); } The problem I have is that, the rows loaded into the ComboBox1 have many cha...

WPF ComboBox Auto Select If Only 1 Item

I have a combo box that I bind to an observable collection, which gets changed (according to company selected) and a large number of companies will have a single account (the items) therefore I want to know what the best way to make the ComboBox set the SelectedItem if there is only 1 item in the ItemsSource, otherwise leave it as null t...

WPF ComboBox and SelectedItem Binding to XML DataSource

Hi All, I have a comboBox inside a DataTemplate as below:- <ComboBox x:Name="cboImages" Grid.Row="1" Grid.Column="1" SelectedItem="{Binding XPath=ImageName, Path=SelectedItem.Content, Mode=TwoWay}" IsSynchronizedWithCurrentItem="True" > <ComboBoxItem>Image1.jpg</ComboBoxItem> <ComboBoxItem>Image2.jpg</ComboBoxItem> <ComboBoxItem>Image3...

AS3: Extending default ScrollBar component

I'd like to adjust the width of the default ScrollBar that appears inside of a Flash ComboBox. From my research on various forums, it seems like the best approach would be to subclass fl.controls.ScrollBar, which I've tried doing here: package helpers { import fl.controls.ScrollBar; public class CustomScroller extends fl.controls...

Silverlight: Two-Way binding on ComboBox doesn't hit BindingValidationError handler with null

I've scoured the internet and have yet to find a solution. Help me Stack-Overflow-Kenobi, you're my only hope! So I've got this Silverlight application, right? And I have a combobox that's bound to a non-nullable database field so that it is populated on initialization with all possible values. And it's working fine in that regard. ...

WPF combobox binding issue

Hi, I have a view of my data being fed by a viewmodel, but I'm having some issues with comboboxes. The xaml looks like this: <ComboBox Grid.Row="4" Grid.Column="1" Margin="2,2,10,2" ItemsSource="{Binding TrialParentValues, UpdateSourceTrigger=PropertyChanged, Mode=OneWay}" SelectedItem="{...

How to add item to ms access List/Combobox programatically in addition to recordset

I have a combobox in Access 2003 whose recordset is obtained from a stored procedure. I need to find a way to add an additional item to the lists programmatically. The stored procedure returns the following StatusID and StatusName list. 1,Open 2,Closed 3,In-Process 4,Under Review I want to add the option "All Cases" with the StatusID...

.NET ComboBoxStyle.DropDownList selecting while typing

I have a ComboBox with a list of names. I don't want to allow new values, so I set the DropDownStyle to DropDownList. When typing to select a name, it only allows one letter. So if I type "T" it will jump to the first name starting with "T". If I then type "o", it will not jump to the first item starting with "To", but to the first item...

combobox treeview in php & mysql

Does anyone know how to display MySQL db hierarchical data (Nested Set Model (http://www.phpro.org/tutorials/Managing-Hierarchical-Data-with-PHP-and-MySQL.html)) in a combo box as shown here under the "Category:" comboxbox field:http://dir.globetourism.biz/submit.php Thanks ...

Flex extending ComboBox

I created a class CustomCombo.as that extends ComboBox. What is happening is that the CustomCombo combobox is showing as being editable. I do not want this and I cant find the properties to set the editable to false. I also tried setting the combobox's textInput.editable control to false, but to no avail. Any help would be greatly appr...

WPF combobox binding

Update: I've included some diagnostics in the SelectedValue property (diagnostics:PresentationTraceSources.TraceLevel=High) and I think I can see the issue, although I do not know how to fix it. The diagnostics show System.Windows.Data Warning: 76 : BindingExpression (hash=16001149): TransferValue - got raw value '3' System.Windows...

WPF Populate combo box with multi-table data

Hello: I'm working on a simple WPF example and wanted to expand the example but I'm struggling, I'll explain some background first. I have three tables, people, addresses, and countries. As expected people live at an address, and addresses are located in a specific country. I'm currently working through using a combo box as a lookup t...

Why this code doesn't work? :(

<dg:DataGrid Name="gridList" AutoGenerateColumns="False" ItemsSource="{Binding ItemsInTable}" HeadersVisibility="Column" > <dg:DataGrid.RowDetailsTemplate > <DataTemplate x:Name="ItemDetails" > <Border HorizontalAlignment="Stretch" CornerRadius="5" Background="Azure" > <Stack...