hai to all ,
i have to put validation on EstimationStartDate and EstimatedCompletionFields...
I Tried like this.
private DateTime _estimatedStartDate;
[DataMember]
public DateTime EstimatedStartDate
{
get { return _estimatedStartDate; }
set
{
if (value == _estimatedStartDate)
return;
_estimatedStartDate = value;
NotifyPropertyChange(EstimatedStartDate);
}
}
private DateTime _estimatedCompletionDate;
[PropertyComparisonValidator(EstimatedStartDate", ComparisonOperator.GreaterThanEqual , MessageTemplate = Estimated Completion Date should be Greater than or equal to the Estimated Start Date)]
[DataMember]
public DateTime EstimatedCompletionDate
{
get{ return _estimatedCompletionDate; }
set
{
if (value == _estimatedCompletionDate)
return;
_estimatedCompletionDate = value;
NotifyPropertyChange("EstimatedCompletionDate");
}
}
This is working fine when i changed the dates ...
Those are the ComboBox Fields...
when i changed the ExstimationCompletionDate combobox field ...I am getting default time as 12:00:00 A.M for the fields ...so I was not able to save...
I try to changed EstimatedComplitionData combobox then I get that time...
please help me ...