Click here to Skip to main content
15,908,776 members
Home / Discussions / C#
   

C#

 
GeneralRe: List Box showing Value and Display members? Pin
Pete O'Hanlon17-Feb-15 10:32
mvePete O'Hanlon17-Feb-15 10:32 
This would seem to indicate that the new BindingSource was resetting the values. While it may not be a bug, it's certainly not a very clever API design (by the designers of WinForms, not you I will hasten to add).

Okay, I've been having more of a think about this and I suspect that the reason that you need to do this is because when you change your BindingSource, the ComboBox has no concept of what it's bound to. You could be binding to something that doesn't use Key and Value here, so it forces you to update these values here.

modified 17-Feb-15 16:58pm.

GeneralRe: List Box showing Value and Display members? Pin
uniflare17-Feb-15 11:29
uniflare17-Feb-15 11:29 
AnswerRe: List Box showing Value and Display members? Pin
seemajoshii17-Feb-15 19:09
seemajoshii17-Feb-15 19:09 
QuestionLogin to asp.net application through a link send via email Pin
User 1098516717-Feb-15 5:01
User 1098516717-Feb-15 5:01 
AnswerRe: Login to asp.net application through a link send via email Pin
Afzaal Ahmad Zeeshan17-Feb-15 5:33
professionalAfzaal Ahmad Zeeshan17-Feb-15 5:33 
QuestionVisual studio 2010 C# identity without hyphen Pin
sdfsdfsdfewrew3feff16-Feb-15 15:55
sdfsdfsdfewrew3feff16-Feb-15 15:55 
AnswerRe: Visual studio 2010 C# identity without hyphen Pin
Dave Kreskowiak16-Feb-15 16:12
mveDave Kreskowiak16-Feb-15 16:12 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
sdfsdfsdfewrew3feff17-Feb-15 2:54
sdfsdfsdfewrew3feff17-Feb-15 2:54 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
Dave Kreskowiak17-Feb-15 6:56
mveDave Kreskowiak17-Feb-15 6:56 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
sdfsdfsdfewrew3feff17-Feb-15 7:09
sdfsdfsdfewrew3feff17-Feb-15 7:09 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
Dave Kreskowiak17-Feb-15 7:11
mveDave Kreskowiak17-Feb-15 7:11 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
sdfsdfsdfewrew3feff17-Feb-15 7:17
sdfsdfsdfewrew3feff17-Feb-15 7:17 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
Mark_Wallace17-Feb-15 9:44
Mark_Wallace17-Feb-15 9:44 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
Dave Kreskowiak17-Feb-15 9:49
mveDave Kreskowiak17-Feb-15 9:49 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
Pete O'Hanlon17-Feb-15 8:41
mvePete O'Hanlon17-Feb-15 8:41 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
Richard MacCutchan17-Feb-15 7:26
mveRichard MacCutchan17-Feb-15 7:26 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
Dave Kreskowiak17-Feb-15 7:33
mveDave Kreskowiak17-Feb-15 7:33 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
Richard MacCutchan17-Feb-15 7:37
mveRichard MacCutchan17-Feb-15 7:37 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
newton.saber17-Feb-15 7:40
newton.saber17-Feb-15 7:40 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
Kornfeld Eliyahu Peter17-Feb-15 8:08
professionalKornfeld Eliyahu Peter17-Feb-15 8:08 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
newton.saber17-Feb-15 8:40
newton.saber17-Feb-15 8:40 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
Kornfeld Eliyahu Peter17-Feb-15 9:00
professionalKornfeld Eliyahu Peter17-Feb-15 9:00 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
newton.saber17-Feb-15 9:48
newton.saber17-Feb-15 9:48 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
User 1106097917-Feb-15 8:19
User 1106097917-Feb-15 8:19 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
Dave Kreskowiak17-Feb-15 9:47
mveDave Kreskowiak17-Feb-15 9:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.