Все вопросы: [combobox]

450 вопросов

похожие теги: telerik-comboboxlwuit-combobox
0
голосов
2ответов
3866 просмотров

C#: Binding hashtable to combo box question

public class FontType { ... public String Name { get { return _name; } } public String DisplayName { get { return _displayName; } } public Font UseFont { get { return _font; } } } bindFontTypes.DataSource = availableFonts; comboFontType.DataSource = b...

1
голосов
2ответов
3527 просмотров

ComboBox with IEnumerable<brush> as ItemsSource and SelectedItem exception</brush>

I have this issue with ComboBox that uses IEnumerable&lt;Brush&gt; as ItemsSource; the problem lies when I (programmatically) try to set SelectedItem. Here is the code that describes the problem: private readonly List&lt;Brush&gt; colors_; private Brush white_; ViewModelConstructor() { colo...

2
голосов
4ответов
14867 просмотров

How can I set selected value of a XAML Combobox?

Why in the following example is the combobox set to blank instead of "Mr."? XAML: &lt;Window x:Class="TestComb82822.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="3...

14
голосов
2ответов
71914 просмотров

How can I find the index of the selected choice in a combobox?

How do I access the SelectedIndex of an ActiveX combobox object in Excel? I need an integer.

0
голосов
2ответов
3392 просмотров

Unlock/lock form objects with vba

I have an excel worksheet with 2 comboboxes, and 3 scrollbars. I want to protect all the sheet except this form objects (and one cell). When i try to protect the sheet, i can't use the scrollbars and comboboxes. How can i unlock them, keepin the protection for the rest of the sheet with vba ? I t...

2
голосов
1ответов
4951 просмотров

WPF Auto search combobox item

In WPF, when I type some text in combobox, it will highlight the item starting with the text I entered. This highlighting will search the whole text I have entered in the combo box. But instead I want the text search to match only the first letter. How to do this? Sample Code to re-create the p...

4
голосов
2ответов
7562 просмотров

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. &lt;ComboBox Height="30" Width="300" HorizontalContentAlignment="Stretch" SelectedIndex="0"&gt; &lt;ComboBoxItem HorizontalContentAlignment="Stretch"&gt; ...

6
голосов
3ответов
6298 просмотров

Unable to detect right mouseclick in ComboBox

I have a ComboBox that is a simple drop down style. I wanted to open a new window when the user right clicks on an item in the list, but am having trouble getting it to detect a right click has occurred. My code: private void cmbCardList_MouseClick(object sender, MouseEventArgs e) { if (e.B...

2
голосов
1ответов
1035 просмотров

WPF combobox highlight

In WPF, when I enter some text in combobox, it will highlight the item starting with the text I entered. This highlighting will search the whole text i have entered in the combo box. But instead i want the text search to match only the first letter. How to do this? Actually, I want to make TextS...

14
голосов
6ответов
13419 просмотров

How to set maxlength for combobox in WPF?

How do i set maxlength to combobox, which is having a style applied to it. Thanks

1
голосов
1ответов
1634 просмотров

WPF Combo Box Binding

I am trying to bind a combo box with some data. The problem is that I have the data in the combo box like this: &lt;ComboBox&gt; &lt;ComboBoxItem&gt;Item 1&lt;/ComboBoxItem&gt; &lt;ComboBoxItem&gt;Item 2&...

1
голосов
3ответов
868 просмотров

Why does a starting + (plus sign) not show up in a combo box of data grid?

I use several controls with combo boxes and data grids, which I fill using a HTTPService which returns some XML. However in the XML there are some telephone numbers starting with a plus sign (ie. +123456). However in the combo boxes and the data grids the plus sign doesn't show (so it would displ...

3
голосов
2ответов
5689 просмотров

How can I create a Multiple Value Combo box on an Unbound Form

I need your help on MS Access 2007. I have a big problem with my MS Access Unbound Form. How can I create a combo box i do not want bound to a table, show a multiple value List? The Combo is named Sector and want these values to be selected in Multiples 9Which should be possible in Access 2007)...

0
голосов
1ответов
3642 просмотров

Binding WPF ComboBox to entity

Ok, Ive searched the heck out of the Interwebs and can't seem to find this right. I have a ComboBox that is bound to a CollectionViewSource of EntityFramework entities. The display is a template that shows the first/last name. The problem is, when an item is selected, the Display of the combob...

3
голосов
1ответов
4097 просмотров

Silverlight 3 - binding enum to combobox from DomainServiceContext

I just started playing around with Silverlight and a supposedly simple thing like binding a Combobox is driving me nuts. I read a bunch of articles now but none really address the issue that I'm after or were made for Silverlight 2 and don't seem to work. Let's say I have an entity object "User"...

5
голосов
5ответов
10190 просмотров

How to prevent a combobox from selecting an item from its list in wpf?

This combobox should display a bound value as its text, and cannot be disabled. I just want to prevent a user from changing the displayed value.

0
голосов
2ответов
1055 просмотров

C# -comboBox Selected IndexChange

I have a ComboBox that have a list of EmpolyeeNames. When a user selects a EmpolyeeName "e1", a ListBox below gets populated with data for the chosen employee. That data can be modified. The user and has to press the Save button after all changes are done. But if the user forgets to press Save ...

0
голосов
1ответов
1044 просмотров

Flex Combobox and "Access of undefined property ..." error

I am kind of puzzled and not sure how to tackle this issue: Got two comboxes with dataproviders. Also, I created a separate index.as in /as folder. I have these two functions: In my .mxml page, I have : &lt;mx:FormItem label="Property Code:" id="fi_propertyCode" width="100%"&gt; ...

2
голосов
2ответов
2931 просмотров

ComboBox's Selected Value Changed On Lost Focus in VB.NET

I have a datagridview(dgv) with a DataGridViewComboBoxColumn(colLocation) colLocation.AutoComplete = False colLocation.HeaderText = "Stored to" colLocation.DataSource = DB.getLocation() colLocation.DisplayMember = "description" colLocation.ValueMember = "id" I added the colLocation to dgv. "d...

12
голосов
3ответов
9016 просмотров

C# ComboBox GotFocus

I have a C# ComboBox using WPF. I have code that executes when the ComboBox's GotFocus is activated. The issue is that the GotFocus event is executed every time a selection is made from the ComboBox. For example, the GotFocus is executed when you first click on the ComboBox and then when you m...

1
голосов
2ответов
368 просмотров

Binding a wpf combobox to an element

A very basic question : I want to bind a wpf ComboBox to a selected element, so it displays the same value as the TextBox: &lt;StackPanel DataContext="{Binding ElementName=comboBox1, Path=SelectedItem}"&gt; &lt;TextBox Text="{Binding Path=Id}"&gt;&lt;/TextBox&gt; &lt;ComboBo...

0
голосов
1ответов
4437 просмотров

Accessing child of ListBoxItem

I have a ListBox with a DataTemplate that looks like this: &lt;ListBox Name="listBox"&gt; &lt;ListBox.ItemTemplate&gt; &lt;DataTemplate DataType="x:Type local:NumericIconDefinition"&gt; &lt;Grid&gt; &lt;ComboBox Name="IconComboBox"/&gt;...

0
голосов
1ответов
505 просмотров

BitmapFrame in WPF ComboBox

I have a dialog that lets the user pick a custom icon. Loaded icons are displayed in a combobox in which the user makes the selection. Here is the XAML code for the combobox: &lt;ComboBox Style="{DynamicResource IconComboBox}" ItemTemplate="{StaticResource IconTemplate}" ItemsSource...

2
голосов
3ответов
2735 просмотров

How to add a focus style to an editable ComboBox in WPF

I've been looking at the following example on how to style the ComboBox, but I haven't been able to create a focus effect when going into an editable combo box. Whenever the ComboBox receives focus, it should go into edit mode and the component should have a focus style. The basic problem is th...

1
голосов
1ответов
779 просмотров

Chaining Tk::BrowseEntry widgets together

I am facing some glitches using the -browsecmd and -listcmd options of Tk::BrowseEntry widget: I have three BrowseEntry widgets and each uses the value of the previous one as input for populating its own list. The values are used as arguments to a subroutine that pulls out the list of items in ...

0
голосов
3ответов
1187 просмотров

Advanced combobox binding from code

Suppose I have a business object 'obj1' that has property 'P'. Let's also assume that I have a list of business objects: 'List&lt;BussObj&gt; list' and each BussObj object contains 2 properties: 'A' and 'B'. This list is bound to combobox: combobox.ItemsSource = list;. I would like to specify ...

1
голосов
2ответов
2397 просмотров

Error in Binding datasource to combobox

I have the below mentioned method where i am binding DataSource to the combobox control. // floorLocnList is coming from a webservice method private void lstFloor_BindFloor(FloorLocModel[] floorLocnList) { this.comboBox1.DataSource = floorLocnList; this.comb...

0
голосов
2ответов
1013 просмотров

In Flex, how do I get the value of a ComboBox that is in a dataGrid?

I have a data grid that has ComboBoxes in two of its columns. What I need to do is get the values of those bombo boxes when a user highlights the row of the grid NOT when the user uses the comboBox. I understand how to pull the values out once the change handler is invoked on the comboBox, but I...

0
голосов
1ответов
884 просмотров

WPF DataGrid - Problem Customizing a ComboBox

I have a Datagrid with a combo box bound column that works great as follows: &lt;tk:DataGridComboBoxColumn SelectedValueBinding="{Binding DefaultLocationID}" SelectedValuePath="LocationID" DisplayMemberPath="LocationName" Header="Defaul...

1
голосов
1ответов
810 просмотров

Filtering combobox based on value member

I have two list that I load when my app starts. The first one loads a complete set of data from the database, the second one independently loads a set of associated data from file. Each list is loaded into a BindingSource and set as the DataSource for their respective combobox. The data is load...