//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Microsoft
// Microsoft
// Microsoft
//------------------------------------------------------------------------------
namespace System.Data {
using System;
///
///
/// Provides data for the event.
///
///
public class DataColumnChangeEventArgs : EventArgs {
private readonly DataRow _row;
private DataColumn _column;
private object _proposedValue;
internal DataColumnChangeEventArgs(DataRow row) {
_row = row;
}
///
///
/// Initializes a new instance of the class.
///
///
public DataColumnChangeEventArgs(DataRow row, DataColumn column, object value) {
_row = row;
_column = column;
_proposedValue = value;
}
///
/// Gets the column whose value is changing.
///
public DataColumn Column {
get {
return _column;
}
}
///
/// Gets the row whose value is changing.
///
public DataRow Row {
get {
return _row;
}
}
///
/// Gets or sets the proposed value.
///
public object ProposedValue {
get {
return _proposedValue;
}
set {
_proposedValue = value;
}
}
internal void InitializeColumnChangeEvent(DataColumn column, object value) {
_column = column;
_proposedValue = value;
}
}
}