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
- WmpBitmapEncoder.cs
- TemplateFactory.cs
- ReadOnlyCollectionBase.cs
- EndpointIdentity.cs
- XsltLibrary.cs
- ConfigViewGenerator.cs
- dataobject.cs
- DataGridViewLayoutData.cs
- Literal.cs
- VectorAnimation.cs
- SegmentInfo.cs
- Int16Animation.cs
- ProgressiveCrcCalculatingStream.cs
- FileNameEditor.cs
- XamlDesignerSerializationManager.cs
- ToolboxBitmapAttribute.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- MembershipUser.cs
- QueryStoreStatusRequest.cs
- CounterCreationData.cs
- CriticalFinalizerObject.cs
- EditingScope.cs
- Repeater.cs
- SettingsPropertyValueCollection.cs
- CodeTypeReferenceExpression.cs
- GeometryDrawing.cs
- XComponentModel.cs
- AuthorizationBehavior.cs
- NumericUpDownAccelerationCollection.cs
- MyContact.cs
- TypeConverter.cs
- SystemUdpStatistics.cs
- CustomCategoryAttribute.cs
- XDeferredAxisSource.cs
- CounterSampleCalculator.cs
- FilteredDataSetHelper.cs
- EditorZone.cs
- DockAndAnchorLayout.cs
- DefaultMemberAttribute.cs
- HashLookup.cs
- UriWriter.cs
- NotFiniteNumberException.cs
- FileDialog.cs
- CounterCreationData.cs
- FixedFindEngine.cs
- TextSchema.cs
- HMAC.cs
- EncoderParameters.cs
- DodSequenceMerge.cs
- FileChangesMonitor.cs
- RSAOAEPKeyExchangeDeformatter.cs
- GroupBoxAutomationPeer.cs
- StateItem.cs
- TextElementAutomationPeer.cs
- IPEndPointCollection.cs
- WebPartManagerInternals.cs
- ObjectConverter.cs
- DataPagerCommandEventArgs.cs
- LicenseManager.cs
- TextEncodedRawTextWriter.cs
- SessionStateItemCollection.cs
- WebReferencesBuildProvider.cs
- DataGridTextBoxColumn.cs
- WebPartsPersonalization.cs
- UxThemeWrapper.cs
- safex509handles.cs
- BindStream.cs
- ClientTarget.cs
- COM2Properties.cs
- NativeMethods.cs
- Point4D.cs
- StringUtil.cs
- WindowsButton.cs
- EmptyControlCollection.cs
- GeneralTransform3D.cs
- ExclusiveCanonicalizationTransform.cs
- SchemaNamespaceManager.cs
- XmlDsigSep2000.cs
- Line.cs
- EdmTypeAttribute.cs
- ScriptingSectionGroup.cs
- LineBreak.cs
- HierarchicalDataSourceDesigner.cs
- CultureSpecificCharacterBufferRange.cs
- PositiveTimeSpanValidator.cs
- SendMailErrorEventArgs.cs
- InputLanguage.cs
- ResXResourceWriter.cs
- ProcessModuleCollection.cs
- CryptoStream.cs
- RuleAction.cs
- SettingsBindableAttribute.cs
- AlternationConverter.cs
- AppearanceEditorPart.cs
- PartBasedPackageProperties.cs
- ProcessHostConfigUtils.cs
- HttpRuntimeSection.cs
- SharedStatics.cs
- FixedSOMSemanticBox.cs
- ExternalDataExchangeService.cs