* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / class / System.Data / System.Data / DataRowView.cs
index 6024ca70d5183affe02f23c2ee3daf251547d531..1517f66667335acd30a52e3e9a053b28625b4e58 100644 (file)
@@ -44,7 +44,11 @@ namespace System.Data
        /// Represents a customized view of a DataRow exposed as a fully featured Windows Forms control.\r
        /// </summary>\r
        // FIXME: correct exceptions in this[] methods\r
+#if NET_2_0\r
+       public class DataRowView : ICustomTypeDescriptor, IEditableObject, IDataErrorInfo, INotifyPropertyChanged\r
+#else\r
        public class DataRowView : ICustomTypeDescriptor, IEditableObject, IDataErrorInfo\r
+#endif\r
        {\r
                #region Fields\r
 \r
@@ -346,5 +350,21 @@ namespace System.Data
                }\r
 \r
                #endregion // IDataErrorInfo implementation\r
+               \r
+#if NET_2_0\r
+               #region INotifyPropertyChanged\r
+\r
+               public event PropertyChangedEventHandler PropertyChanged;\r
+\r
+               [MonoTODO ("to be tested..")]\r
+               void OnPropertyChanged (string propertyName)\r
+               {\r
+                       if (PropertyChanged != null) {\r
+                               PropertyChangedEventArgs args = new PropertyChangedEventArgs (propertyName);\r
+                               PropertyChanged (this, args);\r
+                       }\r
+               }\r
+               #endregion\r
+#endif\r
        }\r
 }\r