DataColumnChangeEvent.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Data / System / Data / DataColumnChangeEvent.cs / 1305376 / DataColumnChangeEvent.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// [....] 
// [....]
// [....] 
//----------------------------------------------------------------------------- 

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; 
        }
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// [....] 
// [....]
// [....] 
//----------------------------------------------------------------------------- 

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; 
        }
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK