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
- XPathScanner.cs
- TableLayoutCellPaintEventArgs.cs
- AppDomainShutdownMonitor.cs
- ChtmlTextWriter.cs
- DisableDpiAwarenessAttribute.cs
- EntityTransaction.cs
- AssemblyBuilder.cs
- FlowLayout.cs
- TypeInitializationException.cs
- SolidBrush.cs
- CodeNamespace.cs
- XmlSerializerFactory.cs
- ScheduleChanges.cs
- NativeWindow.cs
- Deserializer.cs
- ActivityTrace.cs
- RouteValueExpressionBuilder.cs
- XsltSettings.cs
- MessageTraceRecord.cs
- ExcCanonicalXml.cs
- ActiveXSite.cs
- SqlCacheDependencyDatabaseCollection.cs
- ParserExtension.cs
- GradientBrush.cs
- HtmlInputRadioButton.cs
- HashStream.cs
- UiaCoreApi.cs
- HttpResponse.cs
- CodePropertyReferenceExpression.cs
- TextBlockAutomationPeer.cs
- Base64Decoder.cs
- PolyLineSegmentFigureLogic.cs
- XmlSchemaValidationException.cs
- LogWriteRestartAreaAsyncResult.cs
- EpmTargetPathSegment.cs
- COM2IProvidePropertyBuilderHandler.cs
- MD5HashHelper.cs
- ObjectListFieldsPage.cs
- SoapExtensionTypeElement.cs
- ImportException.cs
- UInt64Converter.cs
- StylusPlugin.cs
- BitFlagsGenerator.cs
- StructureChangedEventArgs.cs
- PersistenceProvider.cs
- BoundsDrawingContextWalker.cs
- DataQuery.cs
- ScrollEventArgs.cs
- DeviceSpecificChoice.cs
- AttributeProviderAttribute.cs
- FunctionOverloadResolver.cs
- DbConnectionStringCommon.cs
- WebPartVerbCollection.cs
- TypeUsage.cs
- DeflateEmulationStream.cs
- NumberSubstitution.cs
- DataGridViewRowEventArgs.cs
- QuaternionAnimationUsingKeyFrames.cs
- ValidationRuleCollection.cs
- DisplayInformation.cs
- MultiTrigger.cs
- DataControlCommands.cs
- ResourceReferenceExpressionConverter.cs
- Matrix3D.cs
- TimerElapsedEvenArgs.cs
- SqlConnectionHelper.cs
- Range.cs
- SafeReadContext.cs
- PrtCap_Builder.cs
- ContentTextAutomationPeer.cs
- DataBoundControlHelper.cs
- ExtensionWindowHeader.cs
- TableLayoutStyleCollection.cs
- ChannelTerminatedException.cs
- ReadOnlyNameValueCollection.cs
- TdsParserHelperClasses.cs
- TypeSource.cs
- GeometryGroup.cs
- QueryCacheEntry.cs
- AnnotationResourceChangedEventArgs.cs
- PathTooLongException.cs
- SkinBuilder.cs
- KerberosRequestorSecurityToken.cs
- WebPartVerbCollection.cs
- CollectionChangedEventManager.cs
- ContainerControl.cs
- Processor.cs
- StrokeFIndices.cs
- SHA1Managed.cs
- XmlSchemaChoice.cs
- WebPartCollection.cs
- HttpApplication.cs
- CryptoConfig.cs
- ByteStreamGeometryContext.cs
- SymbolPair.cs
- FormsAuthenticationEventArgs.cs
- RowTypePropertyElement.cs
- Assembly.cs
- ConfigPathUtility.cs
- DateTimeValueSerializerContext.cs