Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
41 views

Can't data-bind to ComboBox in WPF control for WinForms app; designer works fine

I have a WPF user control that sits in an ElementHost so it can be used in a WinForms app. On this WPF user control is a ComboBox, to which I'm trying to data-bind an ObservableCollection of a rather ...
Eric Eggers's user avatar
0 votes
2 answers
43 views

SelectedValue of ComboBox is not of the type I expect

Consider a complex object defined by an interface IMyInterface. I have a collection of those objects which I want to present in a ComboBox to select a specific instance: IEnumerable<IMyInterface>...
lhiapgpeonk's user avatar
0 votes
2 answers
156 views

Initial Item in Data bound Combobox is not selected. Even though the Bound Object has a Value

I have a class which is creating a Combobox with a Databinding to an Object. The Object has a Value for an enum. But when the ComboBox is loaded it doesnt Contain a Value. The Following is the part ...
Nino's user avatar
  • 11
0 votes
1 answer
219 views

Bind value to combobox in Edit mode in windows form app C#

I have a list in which I put add and edit button. both of two button use the same form. I use comboBox to add or edit person's role .This list is about the different role that a person can have so I ...
fahime abouhamze's user avatar
0 votes
1 answer
72 views

How to make my comboboxes stop autochanging values

couldn't find an answer to my issue. So hoped someone could help. I have to comboboxes on one form, and they are both filled with data from the same datatable. The issue is that when I select i.e. ...
lazy_it_guy's user avatar
0 votes
1 answer
1k views

Binding Dictionary to ComboBox in C# .net winforms

This should be a duplicate question but I'm posting it because none of the answers anywhere are working. I have a dictionary of the types: private Dictionary<IModule, AssemblyLoadContext> ...
Plaje's user avatar
  • 95
0 votes
1 answer
107 views

Bound Combobox changing SelectedItem when (re)filling Datasource

I encountered a very specific behave on the Comboboxes in Winform. I found a lot of quite similar questions, but no useful anwser to my problem: I have a form where controls are bound to a SQL ...
Werner's user avatar
  • 135
1 vote
1 answer
2k views

How to populate combobox from list of objects

Good evening, normally my problem should be solved with this C# Using a list of objects to populate combobox and keeping object properties accessible but I don't get what I'm doing wrong here. I have ...
Freeway's user avatar
  • 13
0 votes
0 answers
64 views

Winform ComboBox binding

This is something that just started happening. I have a ComboBox that is misbehaving. When the Form opens, the values shown are not what the actual Bound fields have. If you look at the screen print ...
WIlliam Burke's user avatar
0 votes
1 answer
173 views

Winforms Databound Combobox updates data but does not change RowState

.NET 4.7.2 Winforms c# Have a form with a bunch of comboboxes. DropDownList for all. Comboboxes are populated from either Datatables or dictionaries. They are bound to columns in a datatable for ...
John Tamburo's user avatar
0 votes
1 answer
112 views

ComboBox DataSource is not working as I expect [duplicate]

I am trying to get to grips with using DataSource with a combo. At the moment I have this: private void EditMaterialsForm_Load(object sender, EventArgs e) { try { cbMaterialGroups....
Andrew Truckle's user avatar
0 votes
0 answers
38 views

Visual Studio C# OleDB WinForms Combobox Databinding issue

So my problem is that my combobox wont work right. I will explain my steps My combobox is Databinded to a table from a database with only the Value Member set to None When i start the program and ...
PatrickH1999N's user avatar
0 votes
0 answers
582 views

C# WinForms ComboBox SelectedValueChanged event firing delayed

Update: I did not find the true reason yet but I found out, that updating a property of any other databound control raises the 'delayed' event from the Folder-Combobox. By far not a clean solution, ...
Aargoth's user avatar
0 votes
0 answers
82 views

Binding object from Inherit class to combobox c#

Hello i have problems binding an inherit object of the type List, i can't figure out how to set the DisplayMember and ValueMember of the ComboBox here is my class UserObject using ComissionsTwo....
Edgar Gomez's user avatar
0 votes
2 answers
1k views

How to bind value and text to a drop down (combo box) which is present in a property grid?

How would I bind a custom object which has got value and text to bind to a drop down in a property grid? For example, I have a custom list like below: List < Employee > _employeeList; public ...
patrick johnsonp's user avatar

15 30 50 per page
1
2 3 4 5
10