ListViewSelectEventArgs.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / Orcas / RTM / ndp / fx / src / xsp / System / Web / Extensions / ui / webcontrols / ListViewSelectEventArgs.cs / 1 / ListViewSelectEventArgs.cs

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

using System; 
using System.Collections.Specialized; 
using System.ComponentModel;
 
namespace System.Web.UI.WebControls {

    [AspNetHostingPermission(System.Security.Permissions.SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
    [AspNetHostingPermission(System.Security.Permissions.SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] 
    public class ListViewSelectEventArgs : CancelEventArgs {
        private int _newSelectedIndex; 
 
        public ListViewSelectEventArgs(int newSelectedIndex) : base(false) {
            this._newSelectedIndex = newSelectedIndex; 
        }

        /// 
        /// Gets the index of the selected row to be displayed in the . 
        ///    This property is read-only.
        ///  
        public int NewSelectedIndex { 
            get {
                return _newSelectedIndex; 
            }
            set {
                _newSelectedIndex = value;
            } 
        }
    } 
} 

// 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