Click here to Skip to main content
15,900,725 members
Home / Discussions / C#
   

C#

 
AnswerRe: get the property name of custom folder Pin
Eddy Vluggen3-Jan-14 6:23
professionalEddy Vluggen3-Jan-14 6:23 
QuestionDeserialize Pin
shers2-Jan-14 18:52
shers2-Jan-14 18:52 
AnswerRe: Deserialize Pin
dan!sh 2-Jan-14 21:02
professional dan!sh 2-Jan-14 21:02 
QuestionHow to save data in c# Pin
gaurav23252-Jan-14 18:24
gaurav23252-Jan-14 18:24 
QuestionRe: How to save data in c# Pin
Richard MacCutchan2-Jan-14 21:31
mveRichard MacCutchan2-Jan-14 21:31 
AnswerRe: How to save data in c# Pin
OriginalGriff2-Jan-14 21:35
mveOriginalGriff2-Jan-14 21:35 
AnswerRe: How to save data in c# Pin
Eddy Vluggen3-Jan-14 6:24
professionalEddy Vluggen3-Jan-14 6:24 
QuestionFilter list of classes by ComboBox. Harder than I thought. Pin
dudz artiaga2-Jan-14 4:10
dudz artiaga2-Jan-14 4:10 
AnswerRe: Filter list of classes by ComboBox. Harder than I thought. Pin
Ravi Bhavnani2-Jan-14 5:24
professionalRavi Bhavnani2-Jan-14 5:24 
AnswerRe: Filter list of classes by ComboBox. Harder than I thought. Pin
Eddy Vluggen2-Jan-14 9:06
professionalEddy Vluggen2-Jan-14 9:06 
Question[Solved] Getting non-null / non-zero cells from Excel using Cells.Find Pin
emma.sun.sts1-Jan-14 22:25
emma.sun.sts1-Jan-14 22:25 
AnswerRe: Getting non-null / non-zero cells from Excel using Cells.Find Pin
Eddy Vluggen2-Jan-14 8:12
professionalEddy Vluggen2-Jan-14 8:12 
GeneralRe: Getting non-null / non-zero cells from Excel using Cells.Find Pin
emma.sun.sts5-Jan-14 19:25
emma.sun.sts5-Jan-14 19:25 
AnswerRe: Getting non-null / non-zero cells from Excel using Cells.Find Pin
TnTinMn5-Jan-14 16:00
TnTinMn5-Jan-14 16:00 
GeneralRe: Getting non-null / non-zero cells from Excel using Cells.Find Pin
emma.sun.sts14-Jan-14 21:16
emma.sun.sts14-Jan-14 21:16 
QuestionN-Tier C# Master Detail Pin
ahmed_one1-Jan-14 21:23
ahmed_one1-Jan-14 21:23 
AnswerRe: N-Tier C# Master Detail Pin
Eddy Vluggen2-Jan-14 8:07
professionalEddy Vluggen2-Jan-14 8:07 
QuestionRe: N-Tier C# Master Detail Pin
ahmed_one2-Jan-14 17:25
ahmed_one2-Jan-14 17:25 
Thanks for your reply,

I've created DAL class for data access ofcourse, purpose of which is to provide Database connection and execute Sql commands or stored proc.

As mentioned in my question, I've created Order class which will access DAL class and Get and Save Order..

The problem I am facing is from OrderDetails class...

My approach is: On the Winform (which is I think Presentation layer) when user clicks save button It should do the following:

1-Create Order class instance (for eg. Order od = new Order()) and then call Order class SaveData method by providing parameters: Like od.SaveData(OrdId,CustId OrdDate, ShpDate)

Which then ultimately save the order Master data...Order master is bind to DataTable.

Now the problem: How should I save OrderDetails...which is in DataGridView name dgGrd, dgGrd is also bind to DataTable.

OrderDetails also have SaveData method which take parameters (ProductID, Quantity, UnitPrice)...How should I call SaveData method within Order class? How should I pass whole DataGridView DataTable to SaveData method of OrderDetails class?

I will be very much appreciate if you could help me to line up my coding, perhaps if you could provide a sample? showing N-Tier Master Detail...I am still at beginner learning stage...And still doing lots of net searching for answer..

Thanks in advance

Ahmed
AnswerRe: N-Tier C# Master Detail Pin
Eddy Vluggen3-Jan-14 6:37
professionalEddy Vluggen3-Jan-14 6:37 
GeneralRe: N-Tier C# Master Detail Pin
ahmed_one3-Jan-14 17:32
ahmed_one3-Jan-14 17:32 
GeneralRe: N-Tier C# Master Detail Pin
Eddy Vluggen4-Jan-14 5:28
professionalEddy Vluggen4-Jan-14 5:28 
GeneralRe: N-Tier C# Master Detail Pin
ahmed_one5-Jan-14 22:31
ahmed_one5-Jan-14 22:31 
GeneralRe: N-Tier C# Master Detail Pin
Eddy Vluggen7-Jan-14 9:18
professionalEddy Vluggen7-Jan-14 9:18 
QuestionMessage Closed Pin
1-Jan-14 17:24
Member 104982291-Jan-14 17:24 
AnswerRe: Seeking experienced Forex programmer to code EA in C# for PFSoft Protrader 3 Pin
Dave Kreskowiak1-Jan-14 17:52
mveDave Kreskowiak1-Jan-14 17:52 

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.