₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,333 members, 8,511,312 topics. Date: Sunday, 01 November 2026 at 10:34 AM

Toggle theme

Modifying Data - Programming - Nairaland

Nairaland Forum › Science/Technology › Programming › Modifying Data (1021 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

__ • 2 • 3 • 4

Install And Edit 10 Php Scripts For 2000 Naira For Programmers In Umuahia • Android Developers • Glo Modem For Sale