Hi:
Hi have a not mapped calculated field on entity framework; The value changes based on other property, but the datagrid doesnt reflect the change inmediatly, how can I solve it?
public int Longitud
{
get
{
if (Nombre != null)
{
int resultado= Nombre.Length;
// OnPropertyChanged(nameof(Longitud));
return resultado;
}
else
return 0;
}
}
Probably, you should call the OnPropertyChanged() method in the setter of the other property. For example:
public object Nombre { get { return this.nombre; } set { this.nombre = value; OnPropertyChanged("Nombre"); OnPropertyChanged("Longitud"); } }