// // System.Data.DataColumnChangeEventArgs.cs // // Author: // Christopher Podurgiel (cpodurgiel@msn.com) // // (C) Chris Podurgiel // using System; namespace System.Data { /// /// Provides data for the ColumnChanging event. /// public class DataColumnChangeEventArgs : EventArgs { private DataColumn _column = null; private DataRow _row = null; private object _proposedValue = null; /// /// Initializes a new instance of the DataColumnChangeEventArgs class. /// /// /// /// public DataColumnChangeEventArgs(DataRow row, DataColumn column, object value) { _column = column; _row = row; _proposedValue = value; } /// /// Gets the DataColumn with a changing value. /// public DataColumn Column { get { return _column; } } /// /// Gets or sets the proposed new value for the column. /// public object ProposedValue { get { return _proposedValue; } set { _proposedValue = value; } } /// /// Gets the DataRow of the column with a changing value. /// public DataRow Row { get { return _row; } } } }