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
- InteropBitmapSource.cs
- List.cs
- WhiteSpaceTrimStringConverter.cs
- XmlSchemaAll.cs
- OdbcInfoMessageEvent.cs
- WsatConfiguration.cs
- TemplateXamlParser.cs
- CleanUpVirtualizedItemEventArgs.cs
- HwndSourceParameters.cs
- tabpagecollectioneditor.cs
- UpdateException.cs
- WebPartVerbsEventArgs.cs
- ImageButton.cs
- IdentityValidationException.cs
- QualifiedCellIdBoolean.cs
- Grant.cs
- SequentialOutput.cs
- TextWriter.cs
- DeclarativeCatalogPart.cs
- dataprotectionpermissionattribute.cs
- Pen.cs
- SchemaMapping.cs
- FilteredDataSetHelper.cs
- XmlAttributeOverrides.cs
- UnsafeNativeMethods.cs
- DataGridViewRowsRemovedEventArgs.cs
- CoTaskMemHandle.cs
- DataConnectionHelper.cs
- LocatorGroup.cs
- EdmRelationshipRoleAttribute.cs
- RegionInfo.cs
- SystemEvents.cs
- SqlRowUpdatingEvent.cs
- SymLanguageVendor.cs
- SqlVersion.cs
- SqlUnionizer.cs
- DataGridViewColumnStateChangedEventArgs.cs
- HttpResponseInternalWrapper.cs
- UTF8Encoding.cs
- HttpResponseHeader.cs
- StructuredTypeEmitter.cs
- CommunicationObjectAbortedException.cs
- TraceXPathNavigator.cs
- ValidationErrorEventArgs.cs
- JavaScriptString.cs
- basenumberconverter.cs
- EmptyReadOnlyDictionaryInternal.cs
- GifBitmapDecoder.cs
- XPathSingletonIterator.cs
- CreateUserErrorEventArgs.cs
- WorkflowInvoker.cs
- RecordsAffectedEventArgs.cs
- ReferentialConstraint.cs
- MergeFilterQuery.cs
- PropertyNames.cs
- recordstatefactory.cs
- WebBrowserNavigatingEventHandler.cs
- TextShapeableCharacters.cs
- keycontainerpermission.cs
- TreeNodeBindingCollection.cs
- XamlStackWriter.cs
- PageBreakRecord.cs
- Point3DValueSerializer.cs
- RightsManagementPermission.cs
- WsatAdminException.cs
- DerivedKeySecurityToken.cs
- WinEventWrap.cs
- StreamReader.cs
- ImportCatalogPart.cs
- AnnotationMap.cs
- AnimatedTypeHelpers.cs
- AutoFocusStyle.xaml.cs
- RijndaelManaged.cs
- QueueProcessor.cs
- Decimal.cs
- UserPersonalizationStateInfo.cs
- AlphabeticalEnumConverter.cs
- UnicastIPAddressInformationCollection.cs
- EpmTargetTree.cs
- VolatileEnlistmentMultiplexing.cs
- __Filters.cs
- AutomationPatternInfo.cs
- HtmlElement.cs
- FixedSchema.cs
- AddInSegmentDirectoryNotFoundException.cs
- TreeView.cs
- DataGridItem.cs
- AnimationException.cs
- HttpWebResponse.cs
- SocketInformation.cs
- SortFieldComparer.cs
- DataView.cs
- WizardStepBase.cs
- Size3DConverter.cs
- ListSortDescription.cs
- SourceLineInfo.cs
- RequiredFieldValidator.cs
- RbTree.cs
- altserialization.cs
- SslStream.cs