Click here to Skip to main content
13,457,836 members
Rate this:
Please Sign up or sign in to vote.
See more:
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
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01-2016 | 2.8.180323.1 | Last Updated 23 Dec 2012
Copyright © CodeProject, 1999-2018
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