//
// 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
{
#region Fields
private DataColumn _column = null;
private DataRow _row = null;
private object _proposedValue = null;
#endregion // Fields
#region Constructors
///
/// Initializes a new instance of the DataColumnChangeEventArgs class.
///
///
///
///
public DataColumnChangeEventArgs(DataRow row, DataColumn column, object value)
{
Initialize(row, column, value);
}
internal DataColumnChangeEventArgs()
{
}
#endregion // Constructors
#region Properties
///
/// 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;
}
}
#endregion // Properties
#region Methods
internal void Initialize(DataRow row, DataColumn column, object value)
{
_column = column;
_row = row;
_proposedValue = value;
}
#endregion // Methods
}
}