Click here to Skip to main content
15,920,217 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionTreeview - preventing node selection Pin
AnthonyEllis17-Oct-07 18:18
AnthonyEllis17-Oct-07 18:18 
AnswerRe: Treeview - preventing node selection Pin
Paul Conrad27-Oct-07 11:26
professionalPaul Conrad27-Oct-07 11:26 
QuestionEdit the database from Winform/datagridview? Pin
basi001417-Oct-07 11:25
basi001417-Oct-07 11:25 
AnswerRe: Edit the database from Winform/datagridview? Pin
Giorgi Dalakishvili17-Oct-07 12:01
mentorGiorgi Dalakishvili17-Oct-07 12:01 
GeneralRe: Edit the database from Winform/datagridview? Pin
basi001431-Oct-07 8:47
basi001431-Oct-07 8:47 
QuestionBest reporting tool Pin
Jason Stamp17-Oct-07 3:39
Jason Stamp17-Oct-07 3:39 
AnswerRe: Best reporting tool Pin
Paul Conrad27-Oct-07 13:34
professionalPaul Conrad27-Oct-07 13:34 
GeneralProblem with Master Detail Data Binding Pin
Brady Kelly16-Oct-07 23:47
Brady Kelly16-Oct-07 23:47 
I have a DataSet called ‘exportDefsDataSet’, with two tables, ‘ExportDef’ and ‘ExportDefItem’. The data set contains a relation, ‘ExportDef_ExportDefItem’ that relates the two on ExportDefID. This represents a set of export definitions, and definition items within the export definition, i.e. one export definition has many items.

I have a form with two binding sources on it, ‘exportDefBindingSource’ and ‘exportDefItemBindingSource’. The DataSource of the ‘parent’ binding source is set to ‘exportDefsDataSet’ and the DataMember to ‘ExportDef’. The DataSource of the ‘child’ binding source is set to ‘exportDefBindingSource’, and the DataMember to the relation ‘ExportDef_ExportDefItem’.

I have a ComboBox bound to ‘exportDefBindingSource’ and a BindingNavigator and two textboxes bound to ‘exportDefItemBindingSource’. When I select an export definition in the combobox, I can navigate between the definition items for that definition, but chaos ensues, as often the selected definition disappears from the combo box, or the items for another definition appear in the textboxes. I am battling to reliably preproduce this behaviour, as often the setup works correctly, and after after a seemingly random number of navigations does everything go bad.

Let me describe a typical scenario:

I start the application, and the first definition, “Access Accounting” is automatically selected, and the BindingNavigator correctly navigates between the items for “Access Accounting”. The next definition is “AccpPac DOS”, and if I select it, the correct items for “AccPac DOS” are available, BUT, “Access Accounting” is no longer visible in the ComboBox! Now there are two “AccPac DOS” entries, and the first one of them selects the items for “Access Accounting”. Now I select a third option, “AMS”, and get the AMS items, but now I have two AMS entries, and the first one still points to the “Access Accounting” items. The ComboBox is thouroughly out of sync, but I can’t find why.


I do not believe they are right who say that the defects of famous men should be ignored. I think it is better that we should know them. Then, though we are conscious of having faults as glaring as theirs, we can believe that that is no hindrance to our achieving also something of their virtues. - W. Somerset Maugham


My New Blog

Questionclicking a button in TAdvListView class Pin
jadothebest16-Oct-07 22:06
jadothebest16-Oct-07 22:06 
QuestionIcons in Visual Basic 6.0 Pin
nhss16-Oct-07 20:10
nhss16-Oct-07 20:10 
AnswerRe: Icons in Visual Basic 6.0 Pin
Kristian Sixhøj16-Oct-07 21:05
Kristian Sixhøj16-Oct-07 21:05 
Questionword finder Pin
gilbert28216-Oct-07 5:53
gilbert28216-Oct-07 5:53 
AnswerRe: word finder Pin
Paul Conrad27-Oct-07 13:36
professionalPaul Conrad27-Oct-07 13:36 
Questionclick A button Upon giving its handle ? Pin
jadothebest15-Oct-07 9:58
jadothebest15-Oct-07 9:58 
AnswerRe: click A button Upon giving its handle ? Pin
TJoe15-Oct-07 10:32
TJoe15-Oct-07 10:32 
GeneralRe: click A button Upon giving its handle ? Pin
jadothebest15-Oct-07 11:58
jadothebest15-Oct-07 11:58 
QuestionAfter a keyboard hook, GetTopWindow returns the window for ctfmon.exe Pin
alex_bol15-Oct-07 8:35
alex_bol15-Oct-07 8:35 
AnswerRe: After a keyboard hook, GetTopWindow returns the window for ctfmon.exe Pin
Dave Kreskowiak15-Oct-07 10:05
mveDave Kreskowiak15-Oct-07 10:05 
QuestionHow can i intercept Escape button in dialog form? Pin
wolfgangpuelm15-Oct-07 3:10
professionalwolfgangpuelm15-Oct-07 3:10 
AnswerRe: How can i intercept Escape button in dialog form? Pin
Giorgi Dalakishvili15-Oct-07 3:42
mentorGiorgi Dalakishvili15-Oct-07 3:42 
GeneralRe: How can i intercept Escape button in dialog form? Pin
wolfgangpuelm15-Oct-07 4:12
professionalwolfgangpuelm15-Oct-07 4:12 
AnswerRe: How can i intercept Escape button in dialog form? Pin
Mike Dimmick15-Oct-07 4:14
Mike Dimmick15-Oct-07 4:14 
AnswerRe: How can i intercept Escape button in dialog form? Pin
wolfgangpuelm15-Oct-07 4:39
professionalwolfgangpuelm15-Oct-07 4:39 
Questioncreating new shell for windows Pin
sresth14-Oct-07 17:52
sresth14-Oct-07 17:52 
AnswerRe: creating new shell for windows Pin
Pete O'Hanlon15-Oct-07 1:13
mvePete O'Hanlon15-Oct-07 1:13 

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.