combobox

.NET Windows Forms datagridview - have to click combobox column three times to get focus

I'm making a Windows Forms application which has a standard DataGridView in it. The DataGridView has several DataGridViewComboBoxColumns in it. And they are a pain to work with. To get one of them to open up (as in, drop down the list), you have to click the cell at least 3 (!!!) times. Seems that the first click ends the editing of the ...

How to insert ComboBox item into ListBox? [winforms]

The question is very simple, How to insert ComboBox selected item into ListBox using c#? I have tried with this: listbox.Items.Add(combobox.SelectedItem); and some other permutations but it always displays System.Data.DataRowView or something like that.. EDIT: roblem was coused by this 2 lbList.DisplayMember = "hm"; lbList.ValueMem...

Populating richfaces ComboBox

Hi all, I am trying to populate a combobox as late as possible, to improve performance. I once had populating methods for all the combo boxes in a page in the constructor of the backing bean. I'd like to populate the combo just when the user needs it. Which is the most indicated event to use and the method to avoid delays and concurrenc...

How to separate the selected item of two combobox with a single DataSource?

On a form, I have two combobox wich have the same DataSource (their elements list are the same). When the user select an item in one of the control, the other control's selected item is also modified. That's not what I want. I'd like to have both list populated with the same DataSource (as I currently do), but I'd like their selected it...

How to prevent a combobox first item from being selected on DataSet.Merge()

Hi, I've got a ComboBox which items are coming from a DataTable in a DataSet. When there is no item selected (combo.selectedindex = -1) and I do a .Merge() on the DataSet the first element of the combobox is selected. When there is an item already selected, the item stay selected. How can I prevent this and make it so that even if I do...

WPF Datagrid, Setting the background of combox popup

Hi, I would like to change the color of the popup background when using a DatagridComboboxColumn in the WPF Toolkit datagrid. I've edited the Template for a normal Combobox and it works great for selected item and other properties but the background stays white. I've used Snoop to do some research into the template and it claims that the...

DataGridView and Combobox Column?

when DataGridView has a combobox column, how can I get the text it displays as oppose to the value it represents? When I do DGV.Item("cbo",i).Value I get the value but it won't take DGV.Item("cbo",i).Text. I trying Ctype(DGV.Item("cbo",i),ComboBox).Text and this does not work either. ...

How to bind ComboBox or ComboboxEdit to a DataTable

Hello, could anyone help me to set combobox or combobox edit values from a datatable? In WinForms it was something like this: DataSet dataBases = GetDatabases(); if ((dataBases != null) && (dataBases.Tables[0].Rows.Count > 0)) { comboBoxDataBases.DisplayMember = "DbName"; comboBoxDataBas...

Linking ComboBox's in Adobe Professional

In adobe pro 9, I've got two combo boxes which I'd like to be dependent on each others input. For example, when I update one, it filters the available values for the next. Does anyone know how to do this? ...

How to use WPF Toolkit Datagrid DataGridTemplateColumn and a combobox?

I have a data grid that looks like this <tk:DataGrid ItemsSource="{Binding Parents}" AutoGenerateColumns="False"> <tk:DataGrid.Columns> <tk:DataGridTextColumn Header="Description" Binding="{Binding ID}" /> <tk:DataGridTemplateColumn Header="Description" > <tk:DataGri...

ASP.NET AJAX Toolkit Combobox need to press enter twice to postback

Hi, im using a ComboBox for a feature in my application, and i have AutoCompleteMode="Suggest". However, after i type the in the textbox for a search, and press Enter, nothing happens, i need to press Enter again to postback and show some results. Its kinda annoying and not intuitive to press Enter twice. Its really weird, because when...

.NET 3.5 WinForms: Changing the value in DataGridViewComboxBoxCell modifies other ComboBox controls on the form

I have a DataGridViewComboBoxColumn being programatically databound to a generic list. I also have another combo box on the form. Whenever I change the value of any of the ComboBoxes in the datagridview, the ComboBox on the form also changes its selected value. I didn't intentionally write any and don't see any code that would even re...

Flex3 Combobox doesn't display itemRenderer when closed.

I have a combobox with a custom itemRenderer. The ItemRenderer displays some images and a label. When the combobox opens, the items in the dropdown list display perfectly, but when its closed, the combobox doesn't use the ItemRendere, but shows "[object MyItem]". Do I need another attribute to indicate that the ItemRender also needs to b...

JavaScript-HTML: Create ComboBox with non-selectable items

I would like to create a ComboBox like you can see in the following image The Combo/Menu/List should allow some items to be bold (Main Categories), and to have "sub-categories" under each main category. The bold items should not be clickeable or selectable (I guess these items should have value="") ? Thanks ...

How to disable the drop down function of combo box on certain conditions?

Hi, I have a combo box in my application. I also have a variable called "Status". I want the combo box to be enabled only when the value of the Status variable is 5 or 6. Otherwise, I should not be able to change the value in the combo box. It should have the previous value only.. I had written a click event to disable the combo box. B...

How to change "selected" value in combobox using javascript?

I have 2 comboboxs "combo1" and "combo2", if i select any value in combo1, i need that same value in combo2 as "selected" by javascript <html> <head> <title>combo</title> </head> <body> <form name="testForm" action="" method="post"> <select name="combo1"> <option value="1">option 1</option> ...

Binding a specific DataRow to a ComboBox?

I have Datatable with two Rows, and on the form I have two Combox Boxes - I want to bind comboBox1 to DataRow 1 and ComboBox2 to DataRow 2. How do I do this? ...

Is there a way to have a dropdown combo in an asp.net mvc site with images instead of text?

Is there any way to have a combobox of images instead of text? ...

How simply put values from DataTable to DevExpress comboBoxEdit Items

Hello, does anyone can say, how to simply put values from DataTable to DevExpress comboBoxEdit Items. In WinForms it was simply like that: dtCat = SqlHelper.GetTable("base_UserCategory_Select", new string[] {}); DataRow dr = dtCat.NewRow(); dr["UserCategoryID"] = 0; dr["CategoryName"] = "< All >"; dr["IsSystem"] = "Fa...

Flex Combobox: Cancel Select

I've made an itemrenderer for the combobox control that shows a button next to the label. If a user clicks this button, the item gets removed from the dataprovider. Works so far. When he selects an item, the combobox closes, that's ok. But I don't want it to close when he removes an item. So is there a way to cancel the change event? I ...