Click here to Skip to main content
15,898,036 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to implement master details in windows form
Posted
Comments
sahabiswarup 10-Feb-14 7:50am    
Do you want master page like concept in windows for?
Then simply add one form design the form in that way which will be common for all child form design. Then add new item - select Inherited form and then select the form you have already created.
Hope it helps.
BillWoodruff 10-Feb-14 8:32am    
Please describe in more detail what you mean by "master - detail" in WinForms.

in the parent forms Properties window e.g. Form1 = Parent Form2 = Child

go to:
IsMdiContainer and set it to true


then when calling up the child form use this code



Form2 child = new Form2();
child .Show();

child.MdiParent = this;
 
Share this answer
 
 
Share this answer
 
Comments
Sttaguru halkan chaudhri 10-Feb-14 8:01am    
Hi, karthik actually i want to implement gridview as parent child that display order table data as parent and order details as child ..
BillWoodruff 10-Feb-14 8:17am    
If you are not the original poster on this thread, then you may wish to submit your own question.
Karthik_Mahalingam 10-Feb-14 8:22am    
Dear member,
Please post a new question, so that many users will get notified and you may get the exact solution from them soon.
Thanks
karthik
Karthik_Mahalingam 10-Feb-14 8:27am    
Dear Member,
YOu can post a new question, so that many users will get notified and you many get your exact solution soon as well.I may reply on that.
Thanks
karthik.

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