Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / UI / WebControls / DataGridSortCommandEventArgs.cs / 1 / DataGridSortCommandEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Web.UI.WebControls {
using System;
using System.Security.Permissions;
///
/// Provides data for the event of a .
///
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class DataGridSortCommandEventArgs : EventArgs {
private string sortExpression;
private object commandSource;
///
/// Initializes a new instance of the class.
///
public DataGridSortCommandEventArgs(object commandSource, DataGridCommandEventArgs dce) {
this.commandSource = commandSource;
this.sortExpression = (string)dce.CommandArgument;
}
///
/// Gets the source of the command. This property is read-only.
///
public object CommandSource {
get {
return commandSource;
}
}
///
/// Gets the expression used to sort. This property is read-only.
///
public string SortExpression {
get {
return sortExpression;
}
}
}
}
// 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.Security.Permissions;
///
/// Provides data for the event of a .
///
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class DataGridSortCommandEventArgs : EventArgs {
private string sortExpression;
private object commandSource;
///
/// Initializes a new instance of the class.
///
public DataGridSortCommandEventArgs(object commandSource, DataGridCommandEventArgs dce) {
this.commandSource = commandSource;
this.sortExpression = (string)dce.CommandArgument;
}
///
/// Gets the source of the command. This property is read-only.
///
public object CommandSource {
get {
return commandSource;
}
}
///
/// Gets the expression used to sort. This property is read-only.
///
public string SortExpression {
get {
return sortExpression;
}
}
}
}
// 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
- SrgsElementList.cs
- KeyedCollection.cs
- SqlExpander.cs
- TypeSystemHelpers.cs
- ProfileManager.cs
- DataStorage.cs
- DataGridViewCellStateChangedEventArgs.cs
- DispatcherHooks.cs
- SelectionRangeConverter.cs
- ExecutionScope.cs
- WsdlBuildProvider.cs
- ClosableStream.cs
- ScrollBarAutomationPeer.cs
- DataObjectMethodAttribute.cs
- Message.cs
- OneToOneMappingSerializer.cs
- CodeEntryPointMethod.cs
- Crc32.cs
- QilXmlReader.cs
- XmlAnyElementAttributes.cs
- CodeMemberProperty.cs
- XamlReaderConstants.cs
- FileSystemWatcher.cs
- XsltConvert.cs
- XmlIgnoreAttribute.cs
- DataBoundLiteralControl.cs
- PageThemeCodeDomTreeGenerator.cs
- CaseInsensitiveOrdinalStringComparer.cs
- SiteOfOriginContainer.cs
- ProviderConnectionPoint.cs
- CommonServiceBehaviorElement.cs
- VBIdentifierNameEditor.cs
- Main.cs
- TimeoutException.cs
- XamlReader.cs
- HotCommands.cs
- Rijndael.cs
- CollectionBuilder.cs
- DurationConverter.cs
- DesignerUtility.cs
- AttachedPropertyBrowsableAttribute.cs
- MouseGestureConverter.cs
- ZipPackagePart.cs
- SqlClientWrapperSmiStream.cs
- KeyInfo.cs
- BlobPersonalizationState.cs
- TableCell.cs
- NullRuntimeConfig.cs
- ConnectionsZone.cs
- TabOrder.cs
- RadioButtonPopupAdapter.cs
- AbsoluteQuery.cs
- PlanCompilerUtil.cs
- UpdateCommand.cs
- SqlWorkflowPersistenceService.cs
- BamlBinaryReader.cs
- ButtonBase.cs
- IntegrationExceptionEventArgs.cs
- Rect3D.cs
- SiteMapNodeItemEventArgs.cs
- Lease.cs
- OptimisticConcurrencyException.cs
- ParseHttpDate.cs
- DataPagerFieldCollection.cs
- MLangCodePageEncoding.cs
- MobileControlDesigner.cs
- BoundPropertyEntry.cs
- TableAutomationPeer.cs
- EntityCommand.cs
- GraphicsPathIterator.cs
- XmlEncoding.cs
- UserPreferenceChangingEventArgs.cs
- PropertyBuilder.cs
- GrammarBuilderDictation.cs
- EventMetadata.cs
- Stack.cs
- RegistrationProxy.cs
- CellIdBoolean.cs
- SpotLight.cs
- TreeIterators.cs
- ThicknessAnimationUsingKeyFrames.cs
- CodeBlockBuilder.cs
- TextDecorationCollection.cs
- WebControlParameterProxy.cs
- XmlUtf8RawTextWriter.cs
- RootCodeDomSerializer.cs
- SQLConvert.cs
- EllipticalNodeOperations.cs
- FrameworkReadOnlyPropertyMetadata.cs
- UnwrappedTypesXmlSerializerManager.cs
- CheckStoreFileValidityRequest.cs
- CodeCompiler.cs
- PathStreamGeometryContext.cs
- XpsDocument.cs
- PenContext.cs
- UnauthorizedAccessException.cs
- Keyboard.cs
- SafeNativeMethods.cs
- StringUtil.cs
- BufferBuilder.cs