2004-03-10 Umadevi S (sumadevi@novell.com)
[mono.git] / mcs / class / System.Data / System.Data / DataColumnChangeEventArgs.cs
1 //
2 // System.Data.DataColumnChangeEventArgs.cs
3 //
4 // Author:
5 //   Christopher Podurgiel (cpodurgiel@msn.com)
6 //
7 // (C) Chris Podurgiel
8 //
9
10 using System;
11
12 namespace System.Data
13 {
14         /// <summary>
15         /// Provides data for the ColumnChanging event.
16         /// </summary>
17         public class DataColumnChangeEventArgs : EventArgs
18         {
19                 
20                 private DataColumn _column = null;
21                 private DataRow _row = null;
22                 private object _proposedValue = null;
23
24                 /// <summary>
25                 /// Initializes a new instance of the DataColumnChangeEventArgs class.
26                 /// </summary>
27                 /// <param name="row"></param>
28                 /// <param name="column"></param>
29                 /// <param name="value"></param>
30                 public DataColumnChangeEventArgs(DataRow row, DataColumn column, object value)
31                 {
32                         _column = column;
33                         _row = row;
34                         _proposedValue = value;
35                 }
36
37                 /// <summary>
38                 /// Gets the DataColumn with a changing value.
39                 /// </summary>
40                 public DataColumn Column 
41                 {
42                         get
43                         {
44                                 return _column;
45                         }
46                 }
47
48
49                 /// <summary>
50                 /// Gets or sets the proposed new value for the column.
51                 /// </summary>
52                 public object ProposedValue 
53                 {
54                         get
55                         {
56                                 return _proposedValue;
57                         }
58                         set
59                         {
60                                 _proposedValue = value;
61                         }
62                 }
63
64
65                 /// <summary>
66                 /// Gets the DataRow of the column with a changing value.
67                 /// </summary>
68                 public DataRow Row 
69                 {
70                         get
71                         {
72                                 return _row;
73                         }
74                 }
75
76
77
78
79         }
80 }