DataGridViewRowsRemovedEventArgs.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewRowsRemovedEventArgs.cs / 1 / DataGridViewRowsRemovedEventArgs.cs

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

namespace System.Windows.Forms 
{ 
    using System;
    using System.Diagnostics; 
    using System.Globalization;

    /// 
    public class DataGridViewRowsRemovedEventArgs : EventArgs 
    {
        private int rowIndex, rowCount; 
 
        /// 
        public DataGridViewRowsRemovedEventArgs(int rowIndex, int rowCount) 
        {
            if (rowIndex < 0)
            {
                throw new ArgumentOutOfRangeException("rowIndex", SR.GetString(SR.InvalidLowBoundArgumentEx, "rowIndex", rowIndex.ToString(CultureInfo.CurrentCulture), (0).ToString(CultureInfo.CurrentCulture))); 
            }
            if (rowCount < 1) 
            { 
                throw new ArgumentOutOfRangeException("rowCount", SR.GetString(SR.InvalidLowBoundArgumentEx, "rowCount", rowCount.ToString(CultureInfo.CurrentCulture), (1).ToString(CultureInfo.CurrentCulture)));
            } 
            this.rowIndex = rowIndex;
            this.rowCount = rowCount;
        }
 
        /// 
        public int RowIndex 
        { 
            get
            { 
                return this.rowIndex;
            }
        }
 
        /// 
        public int RowCount 
        { 
            get
            { 
                return this.rowCount;
            }
        }
    } 
}

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


                        

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