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

C#

 
QuestionUnable to Build Release Version of Program Pin
MWRivera7-Jun-10 8:54
MWRivera7-Jun-10 8:54 
QuestionRe: Unable to Build Release Version of Program Pin
MWRivera7-Jun-10 9:27
MWRivera7-Jun-10 9:27 
AnswerRe: Unable to Build Release Version of Program Pin
MWRivera7-Jun-10 9:53
MWRivera7-Jun-10 9:53 
GeneralRe: Unable to Build Release Version of Program Pin
mprice2147-Jun-10 18:04
mprice2147-Jun-10 18:04 
GeneralRe: Unable to Build Release Version of Program Pin
MWRivera8-Jun-10 3:09
MWRivera8-Jun-10 3:09 
GeneralRe: Unable to Build Release Version of Program Pin
mprice2148-Jun-10 3:51
mprice2148-Jun-10 3:51 
QuestionHow to use DataBinding/DataSets to INSERT both a row in a parent table, and its CHILD table rows (matched by key) at the same time (or right after) Pin
Draekz7-Jun-10 8:49
Draekz7-Jun-10 8:49 
AnswerRe: How to use DataBinding/DataSets to INSERT both a row in a parent table, and its CHILD table rows (matched by key) at the same time (or right after) Pin
Mycroft Holmes7-Jun-10 19:15
professionalMycroft Holmes7-Jun-10 19:15 
This comes from binding your data tables to the form controls using MS wizardy things and adapters. You either have to do the 2 stage save or take control of your data in some other way. The adapters work for only the most basic solution (although I would think this scenario is pretty basic so there may be a solution to it).

I would use an class representing your table that holds 1 record and a list of spec objects. Bind Mytable to the form and List<myspec> to the grid. This will allow you to let the user do basically anything you want. When the user commits the data then you could wrap the entire save operation in a transaction ans save MyTable and getting the ID generated by the database (use parameterised queries) and then saving MySpec with the ID then committing the transaction.
Never underestimate the power of human stupidity
RAH

GeneralRe: How to use DataBinding/DataSets to INSERT both a row in a parent table, and its CHILD table rows (matched by key) at the same time (or right after) Pin
Draekz8-Jun-10 4:12
Draekz8-Jun-10 4:12 
QuestionMouseLeave event triggered on the wrong window Pin
martingeorgiev7-Jun-10 8:43
martingeorgiev7-Jun-10 8:43 
AnswerRe: MouseLeave event triggered on the wrong window Pin
Andrew Rissing7-Jun-10 8:53
Andrew Rissing7-Jun-10 8:53 
GeneralRe: MouseLeave event triggered on the wrong window Pin
martingeorgiev7-Jun-10 8:57
martingeorgiev7-Jun-10 8:57 
GeneralRe: MouseLeave event triggered on the wrong window Pin
Andrew Rissing7-Jun-10 9:06
Andrew Rissing7-Jun-10 9:06 
GeneralRe: MouseLeave event triggered on the wrong window Pin
Andrew Rissing7-Jun-10 9:17
Andrew Rissing7-Jun-10 9:17 
GeneralRe: MouseLeave event triggered on the wrong window Pin
martingeorgiev7-Jun-10 9:20
martingeorgiev7-Jun-10 9:20 
QuestionRIP BASED SOFTWARE ROUTER FOR WINDOWS using C# Pin
Member 32734627-Jun-10 7:29
Member 32734627-Jun-10 7:29 
Questionusing and close Pin
imbiz7-Jun-10 7:16
imbiz7-Jun-10 7:16 
AnswerRe: using and close Pin
Keith Barrow7-Jun-10 7:23
professionalKeith Barrow7-Jun-10 7:23 
GeneralRe: using and close Pin
imbiz7-Jun-10 9:20
imbiz7-Jun-10 9:20 
GeneralRe: using and close Pin
Chris Trelawny-Ross7-Jun-10 14:01
Chris Trelawny-Ross7-Jun-10 14:01 
GeneralRe: using and close Pin
imbiz7-Jun-10 14:46
imbiz7-Jun-10 14:46 
GeneralRe: using and close Pin
harold aptroot7-Jun-10 9:51
harold aptroot7-Jun-10 9:51 
AnswerRe: using and close Pin
harold aptroot7-Jun-10 7:25
harold aptroot7-Jun-10 7:25 
GeneralRe: using and close Pin
imbiz7-Jun-10 8:37
imbiz7-Jun-10 8:37 
AnswerRe: using and close Pin
PIEBALDconsult7-Jun-10 13:49
mvePIEBALDconsult7-Jun-10 13:49 

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.