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

I am working on WPF Datagrid master-detail concept.
i have stuck at one place, when the focused or current row of master datagrid changed i want to refresh the detail datagrid.
Can somebody tell me which event of wpf datagrid should be used for this purpose ?.


Thanks in advance,
Sunil
Posted

I think you need to handle SelectedCellsChanged

for more info ;)
http://msdn.microsoft.com/en-us/library/system.windows.controls.datagrid.selectedcellschanged.aspx[^]
 
Share this answer
 
Comments
skumbhar 1-Jul-10 1:09am    
Thanks xmen
Basically i want to write the logic to read the Ilist i.e Addeditem[0] when this event is fired. But i am not getting this method/property in this event. I can get the method AddedCells[0] method which is not useful for me. Please let me know do you know anyother event which will solved my problem.
Thanks in advance.
Sunil
skumbhar 1-Jul-10 1:11am    
Reason for my vote of 2
good one
Xmen Real 1-Jul-10 3:39am    
"Reason for my vote of 2"
Why 2, you could vote 1. Keep doing this, nobody gonna help you.
Thanks xmen..
Basically i want to write the logic to read the Ilist i.e Addeditem[0] when this event is fired. But i am not getting this method/property in this event. I can get the method AddedCells[0] method which is not useful for me. Please let me know do you know anyother event which will solved my problem.
Thanks in advance.
Sunil
 
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