Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / DataGridSortCommandEventArgs.cs / 1305376 / DataGridSortCommandEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Web.UI.WebControls {
using System;
using System.Diagnostics.CodeAnalysis;
///
/// Provides data for the event of a .
///
///
public class DataGridSortCommandEventArgs : EventArgs {
private string sortExpression;
private object commandSource;
///
/// Initializes a new instance of the class.
///
[SuppressMessage("Microsoft.Security", "CA2109:ReviewVisibleEventHandlers")]
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.Diagnostics.CodeAnalysis;
///
/// Provides data for the event of a .
///
///
public class DataGridSortCommandEventArgs : EventArgs {
private string sortExpression;
private object commandSource;
///
/// Initializes a new instance of the class.
///
[SuppressMessage("Microsoft.Security", "CA2109:ReviewVisibleEventHandlers")]
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
- IdnMapping.cs
- MruCache.cs
- TypeHelper.cs
- ObfuscationAttribute.cs
- Type.cs
- CommandConverter.cs
- ToolZone.cs
- ProviderConnectionPoint.cs
- LineServicesRun.cs
- CommandManager.cs
- StyleCollectionEditor.cs
- DesignTimeDataBinding.cs
- XpsFilter.cs
- DesignerActionPropertyItem.cs
- FacetValues.cs
- sqlnorm.cs
- ImmutablePropertyDescriptorGridEntry.cs
- TrackingValidationObjectDictionary.cs
- CodeDOMUtility.cs
- ISessionStateStore.cs
- MatrixTransform3D.cs
- PerformanceCounterPermissionAttribute.cs
- MultiPropertyDescriptorGridEntry.cs
- SignatureGenerator.cs
- MessageFault.cs
- InvalidDataException.cs
- OdbcConnectionPoolProviderInfo.cs
- Freezable.cs
- DbParameterCollection.cs
- ObjectListGeneralPage.cs
- BaseTemplateParser.cs
- InvokeGenerator.cs
- ComponentEditorForm.cs
- VisualTarget.cs
- TransactionManager.cs
- XsltLibrary.cs
- AssemblyCache.cs
- CreateUserWizardStep.cs
- CryptoKeySecurity.cs
- ISessionStateStore.cs
- HScrollProperties.cs
- Rotation3DKeyFrameCollection.cs
- HttpWriter.cs
- Set.cs
- HorizontalAlignConverter.cs
- HttpRuntime.cs
- Util.cs
- SystemBrushes.cs
- Root.cs
- GlyphCache.cs
- ListView.cs
- XmlIlVisitor.cs
- CalendarDay.cs
- WriteableBitmap.cs
- MonitoringDescriptionAttribute.cs
- AvTraceDetails.cs
- SymLanguageType.cs
- ServiceDurableInstance.cs
- ControllableStoryboardAction.cs
- XmlAttributeCollection.cs
- COM2TypeInfoProcessor.cs
- GridViewUpdatedEventArgs.cs
- MobileControlsSectionHandler.cs
- safemediahandle.cs
- XmlSchemaAll.cs
- PointValueSerializer.cs
- GroupLabel.cs
- DataGridViewDataConnection.cs
- BoundingRectTracker.cs
- PhysicalFontFamily.cs
- FileChangesMonitor.cs
- ListBindingConverter.cs
- Cursors.cs
- CodeEntryPointMethod.cs
- TransportChannelFactory.cs
- BuildProviderAppliesToAttribute.cs
- _ScatterGatherBuffers.cs
- processwaithandle.cs
- InfoCardSymmetricCrypto.cs
- AutomationElement.cs
- AtomEntry.cs
- XmlIlVisitor.cs
- CompilerGlobalScopeAttribute.cs
- SizeKeyFrameCollection.cs
- CreatingCookieEventArgs.cs
- XmlTextReaderImpl.cs
- BaseCodeDomTreeGenerator.cs
- CodeLinePragma.cs
- IsolatedStorageFilePermission.cs
- OperationInfoBase.cs
- DataGridLinkButton.cs
- ListViewCommandEventArgs.cs
- XPathNavigator.cs
- ConfigurationStrings.cs
- DbDataSourceEnumerator.cs
- XmlParserContext.cs
- StrongName.cs
- Int32AnimationBase.cs
- KeyGestureConverter.cs
- InitializingNewItemEventArgs.cs