₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,327,352 members, 8,430,586 topics. Date: Saturday, 20 June 2026 at 06:18 PM

Toggle theme

Modifying Data - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingModifying Data (995 Views)

1 Reply

Modifying Data by cylife(op): 10:55pm On May 29, 2016
how can i modify a data?
Re: Modifying Data by speedj: 11:04pm On May 29, 2016
cylife:
how can i modify a data?
i use "dapfor.Net Grid" When data is modified, the programmer has to inform the grid about it using Row.Update() method. When event-driven model is used, the grid can receive and process notifications from INotifyPropertyChanged or IBindingList interfaces. In such scenario, when the grid receives notification and performs multi-threading synchronization (if needed), the grid automatically calls Row.Update() method for a corresponding row.
class Employee : INotifyPropertyChanged
{
private readonly string _name;
private string _department;
private readonly string _position;

public Employee(string name, string department, string position)
{
_name = name;
_department = department;
_position = position;
}

public string Name
{
get { return _name; }
}

public string Department
{
get { return _department; }
set
{
if(_department != value)
{
_department = value;
if(PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs("Department"wink);
}
}
}
}

public string Position
{
get { return _position; }
}

public event PropertyChangedEventHandler PropertyChanged;
1 Reply

__234

Please Help Needed On Programming...A Good Cloner NeededI Just Found The Cheapest Vps Hosting Site With Unlimited Bandwidth