The following link describes how to validate data on a property level for a GridView.
http://www.telerik.com/help/silverlight/gridview-managing-data-validation.html
However, this does not seem to work (code sample below). The documentation says that throwing a new Exception will result in a binding validation error and the column will enter into an invalid state. I simply get an unhandled exception error.
public long TradeKeyValidated
{
get { return this.TradeKey; }
set
{
if (value < 0) throw new Exception("Some exception message.");
if (value != this.TradeKey)
{
this.TradeKey = value;
this.RaisePropertyChanged("TradeKeyValidated");
}
}
}
Please advise. Thanks!