NullReference

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.

2010年1月14日

OnValidation 和 OnPropertyChanged

摘要: 有的时候在编辑空间里输入了数据,然后按Toolbar button保存,就会发现数据根本没有更新到绑定的数据源里,但是如果你在点button之前,先点一下其他地方转移一下焦点的话就没有问题了。怎么回事呢?原来就是DataBindings里的Update Datasource这个设置,如果是默认的写法:ctl.DataBindings.Add(new Binding("Text", this.bin... 阅读全文

posted @ 2010-01-14 11:46 NullReference 阅读(2887) 评论(0) 推荐(0) 编辑