Click here to Skip to main content
15,902,735 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: Record Status or Detecting Value Changes Pin
led mike3-Jun-08 5:19
led mike3-Jun-08 5:19 
GeneralRe: Record Status or Detecting Value Changes Pin
FyreWyrm3-Jun-08 15:32
FyreWyrm3-Jun-08 15:32 
GeneralRe: Record Status or Detecting Value Changes Pin
led mike4-Jun-08 5:00
led mike4-Jun-08 5:00 
GeneralRe: Record Status or Detecting Value Changes Pin
FyreWyrm4-Jun-08 13:39
FyreWyrm4-Jun-08 13:39 
AnswerRe: Record Status or Detecting Value Changes Pin
Mike Dimmick2-Jun-08 6:01
Mike Dimmick2-Jun-08 6:01 
GeneralRe: Record Status or Detecting Value Changes Pin
FyreWyrm2-Jun-08 12:45
FyreWyrm2-Jun-08 12:45 
GeneralRe: Record Status or Detecting Value Changes Pin
Robert Rohde2-Jun-08 22:22
Robert Rohde2-Jun-08 22:22 
AnswerRe: Record Status or Detecting Value Changes Pin
Pete O'Hanlon2-Jun-08 21:42
mvePete O'Hanlon2-Jun-08 21:42 
FyreWyrm - the approach we take is to have our business objects implement the INotifyPropertyChanged interface.
public class Customer : INotifyPropertyChanged
{
  private int _id = 0;
  private string _customerName = string.Empty;

  public event PropertyChangedEventHandler PropertyChanged = new delegate { };

  private void PropertyChanged(string value)
  {
    PropertyChanged(this, new PropertyChangedEventArgs(value));
  }

  public string CustomerName
  {
    get { return _customerName; }
    set
    {
      if (value != _customerName)
      {
        _customerName = value;
        PropertyChanged("CustomerName");
      }
    }
  }
}
Any change to CustomerName will result in a property changed notification being raised. If you take a look into databinding (Link[^]), then you should find you can gain a real headstart.

Deja View - the feeling that you've seen this post before.

My blog | My articles



GeneralRe: Record Status or Detecting Value Changes Pin
FyreWyrm3-Jun-08 16:05
FyreWyrm3-Jun-08 16:05 
GeneralRe: Record Status or Detecting Value Changes Pin
Pete O'Hanlon4-Jun-08 2:01
mvePete O'Hanlon4-Jun-08 2:01 
QuestionRe: Record Status or Detecting Value Changes Pin
FyreWyrm5-Jun-08 7:44
FyreWyrm5-Jun-08 7:44 
AnswerRe: Record Status or Detecting Value Changes Pin
Pete O'Hanlon5-Jun-08 10:17
mvePete O'Hanlon5-Jun-08 10:17 
QuestionFTP / User Upload Pin
jonig1930-May-08 10:14
jonig1930-May-08 10:14 
AnswerRe: FTP / User Upload Pin
led mike2-Jun-08 4:28
led mike2-Jun-08 4:28 
Questionconnecting to the google talk server Pin
joachimpr30-May-08 8:54
joachimpr30-May-08 8:54 
AnswerRe: connecting to the google talk server Pin
led mike30-May-08 9:13
led mike30-May-08 9:13 
JokeRe: connecting to the google talk server Pin
joachimpr1-Jun-08 20:09
joachimpr1-Jun-08 20:09 
GeneralRe: connecting to the google talk server Pin
led mike2-Jun-08 4:26
led mike2-Jun-08 4:26 
GeneralRe: connecting to the google talk server Pin
joachimpr4-Jun-08 2:29
joachimpr4-Jun-08 2:29 
GeneralRe: connecting to the google talk server Pin
led mike4-Jun-08 5:17
led mike4-Jun-08 5:17 
GeneralRe: connecting to the google talk server Pin
joachimpr5-Jun-08 21:07
joachimpr5-Jun-08 21:07 
GeneralRe: connecting to the google talk server Pin
Harvey Saayman2-Jun-08 20:33
Harvey Saayman2-Jun-08 20:33 
GeneralRe: connecting to the google talk server Pin
joachimpr5-Jun-08 21:23
joachimpr5-Jun-08 21:23 
GeneralRe: connecting to the google talk server Pin
Harvey Saayman8-Jun-08 19:48
Harvey Saayman8-Jun-08 19:48 
QuestionA file with the same path already exists in the project. Pin
balaji_vbr29-May-08 19:48
balaji_vbr29-May-08 19:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.