What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 56800 |  Welcome, Guest!   Register  Login
 Home > Forums > WPF > How to use two user controls as Master -Details. ...
Manthanmj

How to use two user controls as Master -Details.

Replies: 1 | Posted by: Manthanmj on 6/22/2012 | Category: WPF Forums | Views: 594 | Status: [Member] | Points: 10  Download source file 


Hi,
I have 2 User Controls already created now I want to use one as Master User Control and another as Details User control as follows
1 Parent Control
1.1 - USer Control 1 as Master Control
1.2 - User Control 2 as Details Control

The Master Control has the List box where I select the name of the Item and the Details Control Displays the all the available Items in stock.
I have Added ItemId in the Parent Control and bound it to the Master Control and Details Control (both controls have ItemId as DP).
When I select the Item from Master the details Grid is not refreshing.

How can I make sure that when I select the Item from Master User Control; the Detail User Control should show me the details?
Thanks,
Manthan


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Manthanmj
Manthanmj  
Posted on: 6/25/2012 5:48:58 PM
Level: Starter | Status: [Member] | Points: 25

I have resolved it by using the callback function.
When the value of the dependency property ItemID changes the callback function in Details Control, It will refresh the Details values of the Master Record.

Manthanmj, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/22/2013 2:14:19 PM