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 / 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
- IdleTimeoutMonitor.cs
- Win32Native.cs
- EntityDataReader.cs
- WebMessageFormatHelper.cs
- ComboBoxRenderer.cs
- TogglePatternIdentifiers.cs
- EtwTrace.cs
- SQLString.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- Rules.cs
- CmsInterop.cs
- RangeValuePatternIdentifiers.cs
- XmlSchemaAnyAttribute.cs
- SettingsPropertyValueCollection.cs
- EdmEntityTypeAttribute.cs
- String.cs
- ObjectCacheHost.cs
- Configuration.cs
- CustomError.cs
- DesignTimeVisibleAttribute.cs
- QilIterator.cs
- HotCommands.cs
- ToolStripInSituService.cs
- ImageConverter.cs
- CompositeFontFamily.cs
- Byte.cs
- BrushConverter.cs
- EndCreateSecurityTokenRequest.cs
- ProfilePropertySettings.cs
- DSACryptoServiceProvider.cs
- SqlParameter.cs
- DataGridViewRowConverter.cs
- DateTimeConverter2.cs
- DetailsViewPageEventArgs.cs
- ClaimTypes.cs
- CleanUpVirtualizedItemEventArgs.cs
- SQLBoolean.cs
- LockCookie.cs
- SafeIUnknown.cs
- XslNumber.cs
- AddInController.cs
- Menu.cs
- PbrsForward.cs
- XmlNamespaceMappingCollection.cs
- ImageSource.cs
- HostedHttpContext.cs
- GlobalEventManager.cs
- ItemMap.cs
- TypedDatasetGenerator.cs
- ProcessModelSection.cs
- Attributes.cs
- XamlTypeMapper.cs
- CroppedBitmap.cs
- DefaultMemberAttribute.cs
- ParseChildrenAsPropertiesAttribute.cs
- XmlSerializerOperationGenerator.cs
- RelationshipDetailsRow.cs
- Token.cs
- XmlSchemaElement.cs
- LinearGradientBrush.cs
- CompositeFontFamily.cs
- XmlTypeAttribute.cs
- oledbmetadatacolumnnames.cs
- FacetDescriptionElement.cs
- TableLayoutSettings.cs
- EntitySqlQueryCacheEntry.cs
- cache.cs
- NameSpaceEvent.cs
- EditingCommands.cs
- CryptoConfig.cs
- DataQuery.cs
- TextCompositionManager.cs
- SchemaHelper.cs
- StyleXamlTreeBuilder.cs
- ProcessHostConfigUtils.cs
- EmptyQuery.cs
- SmiEventSink_DeferedProcessing.cs
- WindowsListBox.cs
- ResXResourceSet.cs
- ButtonRenderer.cs
- Encoder.cs
- JsonFormatWriterGenerator.cs
- RegexCharClass.cs
- cookieexception.cs
- CaseExpr.cs
- BridgeDataRecord.cs
- Int32.cs
- XMLSchema.cs
- TileBrush.cs
- ColorInterpolationModeValidation.cs
- UpDownBase.cs
- NativeObjectSecurity.cs
- MethodBuilderInstantiation.cs
- FlowDocumentScrollViewer.cs
- CustomCategoryAttribute.cs
- CodeIdentifier.cs
- FrugalList.cs
- InternalDispatchObject.cs
- List.cs
- WebServiceMethodData.cs