Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / UI / WebControls / GridViewSelectEventArgs.cs / 1 / GridViewSelectEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Web.UI.WebControls {
using System;
using System.ComponentModel;
using System.Security.Permissions;
///
/// Provides data for
/// the
/// event.
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class GridViewSelectEventArgs : CancelEventArgs {
private int _newSelectedIndex;
///
/// Initializes a new instance of the class.
///
public GridViewSelectEventArgs(int newSelectedIndex) {
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.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Web.UI.WebControls {
using System;
using System.ComponentModel;
using System.Security.Permissions;
///
/// Provides data for
/// the
/// event.
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class GridViewSelectEventArgs : CancelEventArgs {
private int _newSelectedIndex;
///
/// Initializes a new instance of the class.
///
public GridViewSelectEventArgs(int newSelectedIndex) {
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SoapHeader.cs
- SoapExtensionStream.cs
- MessageQueuePermissionAttribute.cs
- InstanceLockedException.cs
- PLINQETWProvider.cs
- ToolStripHighContrastRenderer.cs
- CompositeFontParser.cs
- LocalizedNameDescriptionPair.cs
- ResXResourceWriter.cs
- SemaphoreFullException.cs
- XamlToRtfWriter.cs
- FixedDocumentPaginator.cs
- PeerEndPoint.cs
- SpeechUI.cs
- DispatchChannelSink.cs
- CustomErrorsSection.cs
- ItemDragEvent.cs
- PanelDesigner.cs
- PrtCap_Base.cs
- SectionInput.cs
- Missing.cs
- RotationValidation.cs
- PropertyManager.cs
- RoutedEventHandlerInfo.cs
- TraceContextEventArgs.cs
- DataSourceCacheDurationConverter.cs
- Tracking.cs
- TranslateTransform.cs
- XmlILTrace.cs
- ElementNotAvailableException.cs
- TextTreeDeleteContentUndoUnit.cs
- DbParameterHelper.cs
- XmlCodeExporter.cs
- DataServiceQueryContinuation.cs
- Crc32.cs
- SqlConnectionPoolGroupProviderInfo.cs
- FormViewRow.cs
- EventTrigger.cs
- NativeActivityFaultContext.cs
- TrackingProfile.cs
- NamedPipeChannelListener.cs
- Point3DAnimationBase.cs
- SpecularMaterial.cs
- WinOEToolBoxItem.cs
- ResourceDisplayNameAttribute.cs
- CustomGrammar.cs
- ComponentCodeDomSerializer.cs
- Rotation3D.cs
- StylusButtonEventArgs.cs
- RemotingClientProxy.cs
- CompositeScriptReference.cs
- PackageController.cs
- AnimatedTypeHelpers.cs
- WebRequestModulesSection.cs
- JoinQueryOperator.cs
- selecteditemcollection.cs
- NGCSerializationManager.cs
- KoreanLunisolarCalendar.cs
- MsdtcWrapper.cs
- AppDomainProtocolHandler.cs
- ToolTipService.cs
- PeekCompletedEventArgs.cs
- TextViewSelectionProcessor.cs
- FieldToken.cs
- XmlObjectSerializerReadContextComplexJson.cs
- GlobalProxySelection.cs
- StorageFunctionMapping.cs
- MSAAEventDispatcher.cs
- AstTree.cs
- XmlSchemaInferenceException.cs
- CompModSwitches.cs
- MiniParameterInfo.cs
- FindCriteriaElement.cs
- QueryTaskGroupState.cs
- GACMembershipCondition.cs
- ConfigurationManager.cs
- ECDiffieHellman.cs
- versioninfo.cs
- ClaimComparer.cs
- MarginCollapsingState.cs
- DbDataReader.cs
- SolidBrush.cs
- AssociationSet.cs
- FrameworkObject.cs
- MailDefinitionBodyFileNameEditor.cs
- _Rfc2616CacheValidators.cs
- DesignerForm.cs
- Select.cs
- StandardBindingOptionalReliableSessionElement.cs
- WebPartAddingEventArgs.cs
- SpotLight.cs
- sortedlist.cs
- HttpStaticObjectsCollectionBase.cs
- BinaryObjectReader.cs
- Byte.cs
- PreloadedPackages.cs
- XmlIncludeAttribute.cs
- Emitter.cs
- RPIdentityRequirement.cs
- ParallelTimeline.cs