Hello, I'm trying to bind a short datatype to a GridViewCheckBoxColumn but I'm getting a cast error.
I know if I bind to a bool datatype works ok so How can I bind a GridViewCheckBoxColumn to a short datatype assumming that 0=false/unchecked and 1=true/checked?
2 Answers, 1 is accepted
answered on 25 Aug 2010, 09:56 AM
You can add a class implementing the IValueConverter Interface that would be responsible for transforming the short datatype to boolean value. For example, your custom converter may look similar to:
class ShortToBooleanConverter : IValueConverter
public object Convert(object value, Type targetType,
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items