Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- RegexStringValidator.cs
- PrePrepareMethodAttribute.cs
- SoapCommonClasses.cs
- XmlCollation.cs
- WebEvents.cs
- PageStatePersister.cs
- SizeConverter.cs
- SingleQueryOperator.cs
- ActivityBindForm.cs
- DocumentGridPage.cs
- StylusPointPropertyUnit.cs
- CreateUserWizardDesigner.cs
- TCEAdapterGenerator.cs
- DeliveryStrategy.cs
- Slider.cs
- Accessible.cs
- HtmlElementEventArgs.cs
- Bind.cs
- SaveFileDialog.cs
- _SingleItemRequestCache.cs
- XmlWhitespace.cs
- SmiContextFactory.cs
- RepeatBehaviorConverter.cs
- XmlExtensionFunction.cs
- CqlParser.cs
- initElementDictionary.cs
- WebBrowser.cs
- OletxCommittableTransaction.cs
- UnsafeNativeMethodsCLR.cs
- LoginAutoFormat.cs
- StagingAreaInputItem.cs
- ExceptionHelpers.cs
- AssemblyBuilder.cs
- QilScopedVisitor.cs
- TableRow.cs
- SQLInt32.cs
- HwndStylusInputProvider.cs
- ScrollChangedEventArgs.cs
- WebPartConnectVerb.cs
- BlockExpression.cs
- keycontainerpermission.cs
- SystemSounds.cs
- CriticalExceptions.cs
- CalloutQueueItem.cs
- PointHitTestParameters.cs
- _OverlappedAsyncResult.cs
- XmlSchemaRedefine.cs
- ExtensionMethods.cs
- ProxyHelper.cs
- AuthenticationSection.cs
- HostingMessageProperty.cs
- SimpleHandlerBuildProvider.cs
- TextTreeUndo.cs
- SeparatorAutomationPeer.cs
- PolicyReader.cs
- ValueConversionAttribute.cs
- DependencyPropertyHelper.cs
- List.cs
- FollowerQueueCreator.cs
- SqlCharStream.cs
- ModifyActivitiesPropertyDescriptor.cs
- CqlParser.cs
- UrlPath.cs
- httpapplicationstate.cs
- OdbcErrorCollection.cs
- ThaiBuddhistCalendar.cs
- SplitterPanel.cs
- CharStorage.cs
- CornerRadius.cs
- CodeConstructor.cs
- XmlChildEnumerator.cs
- SerializationInfoEnumerator.cs
- TileBrush.cs
- WeakEventTable.cs
- AsymmetricKeyExchangeFormatter.cs
- DESCryptoServiceProvider.cs
- AssemblyNameProxy.cs
- PrintControllerWithStatusDialog.cs
- BrushConverter.cs
- ManagedWndProcTracker.cs
- DecoderExceptionFallback.cs
- RegistrationServices.cs
- GeneralTransform.cs
- PersistChildrenAttribute.cs
- SafeProcessHandle.cs
- Section.cs
- InputMethodStateChangeEventArgs.cs
- StreamHelper.cs
- BaseTreeIterator.cs
- PatternMatcher.cs
- ConnectionStringEditor.cs
- VisualTreeHelper.cs
- PagePropertiesChangingEventArgs.cs
- AssociationSetEnd.cs
- OperationCanceledException.cs
- LineMetrics.cs
- EventLogLink.cs
- UidPropertyAttribute.cs
- glyphs.cs
- DataServiceRequestOfT.cs