Modifying Data - Programming - Nairaland
Nairaland Forum › Science/Technology › Programming › Modifying 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: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" );} } } } public string Position { get { return _position; } } public event PropertyChangedEventHandler PropertyChanged; |
Please Help Needed On Programming... • A Good Cloner Needed • I Just Found The Cheapest Vps Hosting Site With Unlimited Bandwidth
);