Click here to Skip to main content
15,914,222 members

Comments by Ashutosh Gpta (Top 6 by date)

Ashutosh Gpta 10-Dec-19 12:24pm View    
can you try to debug by adding console.log in multiple places so that you will have an idea which line has an issue.
Ashutosh Gpta 9-Dec-19 10:43am View    
@Member 13174280, you have tried the solution then definlty you would have define the type of row, right, but anyways my impression seems to be you are using grid and row is type of DataRow and FIELDNAME is column name.
Ashutosh Gpta 9-Dec-19 7:11am View    
if it is just two decimal value then solution is to use string.format to convert into max two decimal. e.g. sku.SKUPrice = string.Format("{0:0.##}", txtActualPrice.Text);
but it seems you have indexing issue as mentioned by Richard above.
Ashutosh Gpta 9-Dec-19 2:12am View    
i think OP is looking for radar view for his solution, that shows full main view into small portion of full view.. some time main view is not fully visible in screen and this radar view help user to see all elements inside view.
Ashutosh Gpta 9-Dec-19 1:05am View    
ok, then your solution could be, keep reference of c in your class E and class E is kind o child of C, which is managing E.
implement INotifyPropertyChanged for class c as well as this class props are binded in control.
public E MyObject = new E(this); // c class implementation.
public E(C cobj) // constructor of E
{
this.Cobj = cobj;
}
public bool SetProperty<t>(ref T field, T newValue, [CallerMemberName]string propertyName = null)
{
if (!EqualityComparer<t>.Default.Equals(field, newValue))
{
field = newValue;
PropertyChanged?.Invoke(this, new
PropertyChangedEventArgs(propertyName));
this.Cobj.PropertyChanged?.Invoke(this.Cobj, new
PropertyChangedEventArgs(nameof(this.Cobj.Content)));
return true;
}
return false;
}

do not just refer my code and paste it, i hope my code give you understanding of how INotifyPropChnge work.