Click here to Skip to main content
11,797,355 members (76,499 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# WPF
I want to create book management system in wpf application..I have to insert book name,author,quantity, price etc to a datagrid.I have to insert these values using stored procedure and when i am invoking the event total button _click there should be another datagrid on which invoiceno and grand total of these books should be displayed...That also should be done using user defined stored procedure..I have created two seperate tables for this...Have to add relationship between them...How can i do this...
Thanks in advance..
Posted 23-Dec-12 16:58pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1


Use Foreign key concept, check this link "[^].

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 CPallini 475
1 OriginalGriff 435
2 Maciej Los 370
3 Abhinav S 344
4 KrunalRohit 251
0 OriginalGriff 2,092
1 Maciej Los 1,760
2 KrunalRohit 1,436
3 CPallini 1,245
4 ppolymorphe 893

Advertise | Privacy | Mobile
Web01 | 2.8.151002.1 | Last Updated 23 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100