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 / 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
- ContentFilePart.cs
- SelectorAutomationPeer.cs
- HGlobalSafeHandle.cs
- FileLoadException.cs
- HtmlInputText.cs
- PersonalizableAttribute.cs
- InitializerFacet.cs
- dataSvcMapFileLoader.cs
- GregorianCalendarHelper.cs
- Transform.cs
- CollectionConverter.cs
- AudioFormatConverter.cs
- ProtocolsConfigurationEntry.cs
- RecognizeCompletedEventArgs.cs
- DataGridCell.cs
- WindowsTooltip.cs
- BindingOperations.cs
- LinqDataView.cs
- ActiveDocumentEvent.cs
- StoragePropertyMapping.cs
- Schema.cs
- XNodeNavigator.cs
- PtsHost.cs
- DataGridViewIntLinkedList.cs
- ExeContext.cs
- OutputCache.cs
- BindingExpressionBase.cs
- TabControlCancelEvent.cs
- JumpList.cs
- RadioButton.cs
- HelpProvider.cs
- Compiler.cs
- EmissiveMaterial.cs
- Utils.cs
- PlatformCulture.cs
- EtwProvider.cs
- AttributeExtensions.cs
- FontFamilyIdentifier.cs
- CannotUnloadAppDomainException.cs
- embossbitmapeffect.cs
- recordstatescratchpad.cs
- EventLogPermissionEntryCollection.cs
- LogWriteRestartAreaState.cs
- FocusTracker.cs
- WorkflowOwnerAsyncResult.cs
- WebPartEditorCancelVerb.cs
- OdbcParameter.cs
- MarkupCompiler.cs
- DecryptedHeader.cs
- TransportConfigurationTypeElementCollection.cs
- Viewport3DAutomationPeer.cs
- XamlRtfConverter.cs
- SystemTcpConnection.cs
- XmlLinkedNode.cs
- CustomErrorCollection.cs
- MimePart.cs
- GeneralTransform3DTo2D.cs
- Brush.cs
- DataGridViewDataErrorEventArgs.cs
- CommandSet.cs
- _Rfc2616CacheValidators.cs
- HttpCacheVaryByContentEncodings.cs
- serverconfig.cs
- BufferedWebEventProvider.cs
- Perspective.cs
- BrowserCapabilitiesFactory35.cs
- GenericAuthenticationEventArgs.cs
- Int32Animation.cs
- MergeFilterQuery.cs
- DataRowCollection.cs
- SystemIcmpV6Statistics.cs
- DbConnectionHelper.cs
- ConfigurationValidatorAttribute.cs
- TextDecorationUnitValidation.cs
- SchemaContext.cs
- AdornerHitTestResult.cs
- StructuralType.cs
- BitmapSourceSafeMILHandle.cs
- TimeSpanOrInfiniteValidator.cs
- SqlDataSourceQueryEditor.cs
- ADMembershipUser.cs
- Script.cs
- OleDbTransaction.cs
- PathFigure.cs
- NodeFunctions.cs
- ProtocolViolationException.cs
- FormsAuthenticationEventArgs.cs
- documentsequencetextview.cs
- SqlCacheDependencyDatabaseCollection.cs
- TimelineGroup.cs
- SqlCacheDependency.cs
- CodeNamespace.cs
- GeneralTransform3DTo2DTo3D.cs
- smtpconnection.cs
- XmlNodeChangedEventManager.cs
- ColumnResult.cs
- RelationshipConstraintValidator.cs
- SerializationInfoEnumerator.cs
- TextDecorationCollection.cs
- ParameterReplacerVisitor.cs