Click here to Skip to main content
15,892,737 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have 2 tables first one order and second one orderdetails, i want to show order table data in parent or master gridview and orderdetails table data in child gridview/ i want when i click on master or parent gridview then child gridview display orderdetails
Posted
Updated 10-Feb-14 2:29am
v2

1 solution

Hello ,

There are several approaches to solve this problem .

1. Using constructor
2. Using objects
3. Using properties
4. Using delegates


for more details try this link

Passing data between forms

thanks
animesh
 
Share this answer
 
Comments
Sttaguru halkan chaudhri 11-Feb-14 1:57am    
Dear, animesh i m not asking that how to pass data bw form ... I m asking 4 how to implement master details gridview
Animesh Datta 11-Feb-14 3:42am    
sorry for my misunderstanding .

first you load the order in parent gridview .and then create datagridview_CellClick event .this event fires when the content within a cell is clicked .under this event , you load the orderdetails table according to orderid .so, that whenever each row of a parent datagridview clicked , order details (of that order) will be loaded .

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900