Click here to Skip to main content
15,883,883 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a Datagrid with 'Select' column, having Radiobutton.
If sorting is performed on any other column the Radiobutton is loosing its selection.

You can check the same kind of question posted on MSDN http://social.msdn.microsoft.com/Forums/silverlight/en-US/0c21552f-9ab5-4ae2-b403-3fe963790042/radiobutton-column-in-datagrid-looses-selection-on-sort[^] and somebody has suggested for custom sorting.
Is there any other alternative, please suggest?
Posted
Comments
TryAndSucceed 30-Jul-13 15:00pm    
Well, you can create a method to save the Radio Button ID first(give a unique ID) and then do sorting. And once the sorting is done, check the Radio Button again based on the stored value.
Mohammed Hameed 6-Aug-13 4:09am    
Same query I have posted at msdn forum http://social.msdn.microsoft.com/Forums/silverlight/en-US/a725d6a3-2898-4ae3-b9e2-40ae98ee5414/radiobutton-column-in-datagrid-silverlight-4-looses-selection-on-sort but they are advising something else.
TryAndSucceed 6-Aug-13 13:40pm    
Yes, but they are worried about sorting and we are worried about Sorting + Radio button selection.

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