Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
we are creating C# Winform application where
1. we have hosted wpf user control in winform.
2. from this wpf user control when we call another new winform i send parent form instance through constructor.
3. Now when we complete process on this new form then we call (gridbind) public method from parent form of wpf element.
4. When we debug then it shows method called successfully but grid is not refreshing .
5. Will anybody help me
thanks in advance....

Again I explain
1. in winform (say dbamanager - Parent Form) I have hosted wpf element(CustContactView.xaml having expander)
2. When we click on expander element we call another form (say Dproperties ) and also instance of DBManager to this Dproperties form
3. When process completed on Dproperties form I want to refresh grid of DBManager form.For that there is public method Bindgrid .
4. This method is called through constructor of DBManager after closing Dproperties form.
5. But method called but grid isnot refreshing .
Posted
Updated 23-Dec-13 20:18pm
v2
Comments
Sergey Alexandrovich Kryukov 24-Dec-13 0:26am    
What does it mean: "we call another winform"? What is "calling a form"?
What does it mean: "send a parent"? Send where?
What is "gridbind", exactly? What is that method, method of what object?
What are you trying to achieve?

The code sample can greatly help, but don't send you full code or its fragment. If should be SSCCE.

—SA
sp_suresh 24-Dec-13 2:18am    
Again I explain
1. in winform (say dbamanager - Parent Form) I have hosted wpf element(CustContactView.xaml having expander)
2. When we click on expander element we call another form (say Dproperties ) and also instance of DBManager to this Dproperties form
3. When process completed on Dproperties form I want to refresh grid of DBManager form.For that there is public method Bindgrid .
4. This method is called through constructor of DBManager after closing Dproperties form.
5. But method called but grid isnot refreshing .

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