Click here to Skip to main content
15,888,802 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I want to refresh my datagrid in UserControl after i close the window. How should i do that?
Please give solution. its urgent.
Posted
Updated 3-Nov-11 3:47am
v2
Comments
BobJanova 3-Nov-11 7:54am    
After you close which window? Try putting a Close event on the window and refreshing the binding ...
Sumit Jawale 3-Nov-11 9:40am    
my data grid is not on the window.
it is on the user control. I want to refresh it when i close the window. How should i do that???
[no name] 3-Nov-11 8:40am    
What do you mean by that? After closing which window, some child window or same window where your control exists.
Sumit Jawale 3-Nov-11 9:36am    
I have data grid on user control in WPF.

And i have another window which is open after i click on one 'edit' button in data grid.

now, when i close the window, i want my data grid should re- bind means it should show new updated values.

How can i suppose to do that??
Menon Santosh 3-Nov-11 8:48am    
plz clarify Ur Question

1 solution

Your class that you are binding to should implement INotifyProprtyChanged[^] on all the relevant properties. That way the DataGrid will refresh itself.
 
Share this answer
 

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