Click here to Skip to main content
14,980,146 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: Re-write a MS Access application to Visual Studio Pin
Eddy Vluggen20-Jan-13 2:32
professionalEddy Vluggen20-Jan-13 2:32 
GeneralRe: Re-write a MS Access application to Visual Studio Pin
Maciej Los19-Mar-13 7:01
mveMaciej Los19-Mar-13 7:01 
AnswerRe: Re-write a MS Access application to Visual Studio Pin
Maciej Los19-Mar-13 7:05
mveMaciej Los19-Mar-13 7:05 
QuestionHow to Deploy my application along with database Pin
Nag4dotnet31-Dec-12 0:27
MemberNag4dotnet31-Dec-12 0:27 
AnswerRe: How to Deploy my application along with database Pin
savbace10-Jan-13 22:54
Membersavbace10-Jan-13 22:54 
QuestionWindows Form Designer code and importing old projects Pin
Aaron Hartley28-Dec-12 10:42
MemberAaron Hartley28-Dec-12 10:42 
AnswerRe: Windows Form Designer code and importing old projects Pin
Mike Meinz21-Jan-13 8:44
MemberMike Meinz21-Jan-13 8:44 
Questionparent/child bindingsource save on new row does not work Pin
PrissySC8-Dec-12 11:07
MemberPrissySC8-Dec-12 11:07 
Parent = context.table
child = From t in parent where ...

In properties, the datasource is set to parent as well.

The bindingnavigators.bindingsource are set to child, all controls and datagrids are bound to the child bindingsoure.

Add new will instaniate a new row. It displays in the datagrids; however, it will not save. The primary key field maintains 0. As soon as I sort or call a new query the row is gone. On reload the row is gone.

Is there a problem with a child binding source?

me.validate()
me.parentsource.endedit()
me.child.endedit()
parent.resetcurrentitem()
me.context.submitchanges()


I have tried ending edit in reverse order and not reseting the current item (needed to update the changes, which works correctly for some strange crazy reason). The problem exists solely with saving a new row.

Does it make a difference that there are two binding navigators? Due to space and design, I opted for 2, but I have tried the addnew on the second.

Hmmm ... Ideas? Sniff | :^) (Asked in VB too. Saw the forms forum after.)
AnswerRe: parent/child bindingsource save on new row does not work Pin
PrissySC10-Dec-12 3:36
MemberPrissySC10-Dec-12 3:36 
QuestionDetect if ANY control is clicked inside a form, regardless of the container Pin
Dennis Bork3-Dec-12 3:39
MemberDennis Bork3-Dec-12 3:39 
Answercrosspost from C# forum Pin
Eddy Vluggen3-Dec-12 4:47
professionalEddy Vluggen3-Dec-12 4:47 
GeneralRe: crosspost from C# forum Pin
Pete O'Hanlon3-Dec-12 4:54
mvePete O'Hanlon3-Dec-12 4:54 
GeneralRe: crosspost from C# forum Pin
Eddy Vluggen3-Dec-12 4:56
professionalEddy Vluggen3-Dec-12 4:56 
AnswerRe: Detect if ANY control is clicked inside a form, regardless of the container Pin
Eddy Vluggen3-Dec-12 5:03
professionalEddy Vluggen3-Dec-12 5:03 
AnswerRe: Detect if ANY control is clicked inside a form, regardless of the container Pin
April Fans27-Dec-12 16:13
MemberApril Fans27-Dec-12 16:13 
AnswerRe: Detect if ANY control is clicked inside a form, regardless of the container Pin
jenitshah19-Jan-13 15:59
Memberjenitshah19-Jan-13 15:59 
AnswerRe: Detect if ANY control is clicked inside a form, regardless of the container Pin
Simon Bridge4-Feb-13 12:13
MemberSimon Bridge4-Feb-13 12:13 
QuestionWix based installer does not execute custom action on upgrade Pin
Prasanth Vijayan11-Nov-12 23:12
MemberPrasanth Vijayan11-Nov-12 23:12 
Questionhow to ad a new records into database using data binding? Pin
tinychi26-Oct-12 23:42
Membertinychi26-Oct-12 23:42 
AnswerRe: how to ad a new records into database using data binding? Pin
Eddy Vluggen28-Oct-12 0:39
professionalEddy Vluggen28-Oct-12 0:39 
GeneralRe: how to ad a new records into database using data binding? Pin
tinychi28-Oct-12 22:36
Membertinychi28-Oct-12 22:36 
GeneralRe: how to ad a new records into database using data binding? Pin
Eddy Vluggen28-Oct-12 23:28
professionalEddy Vluggen28-Oct-12 23:28 
QuestionCurrency formatting Pin
MandyHouse22-Oct-12 15:34
MemberMandyHouse22-Oct-12 15:34 
AnswerRe: Currency formatting Pin
Eddy Vluggen23-Oct-12 23:56
professionalEddy Vluggen23-Oct-12 23:56 
QuestionControls Opacity Pin
ALIJavany11-Oct-12 1:33
MemberALIJavany11-Oct-12 1:33 

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.