Is there a way using WPF ValidationRules to validate the updated field with the data in another datagrid on the same form?
My page looks like this:
Ranges
Min Max
1 10
Rank
5
So in this situation the Rank is updated and I need to make sure it is between the min and max in the rangea on another datagrid. I am using this pattern to validate data from the grid but it doesn't work when I need to pass it data on from another grid:
public override ValidationResult Validate(object value, CultureInfo cultureInfo)
{
EF.Rank rank = (value as BindingGroup).Items[0] as EF.Rank;
//Need to Access the Ranges list from another datagrid on the same page to validate the the rank that was entered is between the min and max which can be adjusted.
}