Hi! Im currently working on a DataGrid. Bases on our app's security. In this particular case, the user can update the row "Jun 2005" only. Al the other rows can't be updated. The column "Valor Real" and "Valor Meta" are the only columns that the user can work with.
This is my view Model;
public class IndicadoresDetalleViewModel : INotifyPropertyChanged
{
private double valorReal { get; set; }
private double valorMeta { get; set; }
public int IdModelo { get; set; }
public int IdPeriodo { get; set; }
public string Periodo { get; set; }
public int IdIndicador { get; set; }
public decimal Porcentaje { get; set; }
public string Semaforo { get; set; }
public int Color { get; set; }
public string ColorHexa { get; set; }
public double PVA_PESO { get; set; }
public int ContCamposAdic { get; set; }
public Xamarin.Forms.Color ColorXam { get; set; }
public string IconSource { get; set; }
public string IconoCampos { get; set; }
public bool bold { get; set; }
public bool PeridoActual { get; set; }
public double ValorReal
{
get
{
return valorReal;
}
set
{
this.valorReal = value;
RaisePropertyChanged("ValorReal");
}
}
public double ValorMeta
{
get
{
return valorMeta;
}
set
{
this.valorMeta = value;
RaisePropertyChanged("ValorMeta");
}
}
public bool Bold
{
get { return bold; }
set
{
if (bold != value)
{
bold = value;
OnPropertyChanged("Bold");
}
}
}
#region INotifyPropertyChanged
public event PropertyChangedEventHandler PropertyChanged;
private void OnPropertyChanged(string name)
{
if (PropertyChanged != null)
PropertyChanged(this, new PropertyChangedEventArgs(name));
}
private void RaisePropertyChanged(String Name)
{
if (PropertyChanged != null)
this.PropertyChanged(this, new PropertyChangedEventArgs(Name));
}
}
I need to create a list of modified values for each cell, based on the modified row and column, to update the values on our server. However, I'm unable to get the values.
Can someone please take a look and give me a hand?
Thanks in advance.
Here's a screenshot of the grid.