This question is locked. New answers and comments are not allowed.
Hi All,
I am using radgridview in my usercontrol, i am adding the columns at runtime based on the number of key value pairs in a dictionary. I am able to bind the data using value converter. But i am not able to achieve the two way binding. Someone please suggest me how to get the values back in ConvertBack method of the converter. I have given my converter code below:
So how can i achieve two way binding for a dictionary property in radgridview?
Regards,
Dhileep
I am using radgridview in my usercontrol, i am adding the columns at runtime based on the number of key value pairs in a dictionary. I am able to bind the data using value converter. But i am not able to achieve the two way binding. Someone please suggest me how to get the values back in ConvertBack method of the converter. I have given my converter code below:
| public class ScoreConverter : IValueConverter |
| { |
| #region IValueConverter Members |
| public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) |
| { |
| var result = (Dictionary<string, int>)value; |
| return result[parameter.ToString()]; |
| } |
| public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) |
| { |
| //Not Implemented |
| } |
| } |
So how can i achieve two way binding for a dictionary property in radgridview?
Regards,
Dhileep
