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 / GridViewSortEventArgs.cs / 1 / GridViewSortEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Web.UI.WebControls {
using System;
using System.ComponentModel;
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 GridViewSortEventArgs : CancelEventArgs {
private string _sortExpression;
private SortDirection _sortDirection;
///
/// Initializes a new instance of the class.
///
public GridViewSortEventArgs(string sortExpression, SortDirection sortDirection) {
this._sortExpression = sortExpression;
this._sortDirection = sortDirection;
}
///
/// Gets the direction used to sort.
///
public SortDirection SortDirection {
get {
return _sortDirection;
}
set {
_sortDirection = value;
}
}
///
/// Gets the expression used to sort.
///
public string SortExpression {
get {
return _sortExpression;
}
set {
_sortExpression = value;
}
}
}
}
// 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.ComponentModel;
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 GridViewSortEventArgs : CancelEventArgs {
private string _sortExpression;
private SortDirection _sortDirection;
///
/// Initializes a new instance of the class.
///
public GridViewSortEventArgs(string sortExpression, SortDirection sortDirection) {
this._sortExpression = sortExpression;
this._sortDirection = sortDirection;
}
///
/// Gets the direction used to sort.
///
public SortDirection SortDirection {
get {
return _sortDirection;
}
set {
_sortDirection = value;
}
}
///
/// Gets the expression used to sort.
///
public string SortExpression {
get {
return _sortExpression;
}
set {
_sortExpression = value;
}
}
}
}
// 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
- WmlTextBoxAdapter.cs
- StylusShape.cs
- XPathNodeHelper.cs
- PagePropertiesChangingEventArgs.cs
- nulltextcontainer.cs
- FastPropertyAccessor.cs
- OutputCache.cs
- CallContext.cs
- ClientBuildManagerCallback.cs
- CodeCastExpression.cs
- SqlClientPermission.cs
- RoamingStoreFile.cs
- HttpRawResponse.cs
- handlecollector.cs
- ParameterModifier.cs
- SqlLiftWhereClauses.cs
- WorkflowOperationBehavior.cs
- DispatcherProcessingDisabled.cs
- SerializerProvider.cs
- SHA256.cs
- GeneratedContractType.cs
- ThicknessConverter.cs
- LinkClickEvent.cs
- FileDialogCustomPlaces.cs
- GridViewSortEventArgs.cs
- Identifier.cs
- DebugHandleTracker.cs
- DrawingAttributesDefaultValueFactory.cs
- TreeView.cs
- FixedPosition.cs
- SystemGatewayIPAddressInformation.cs
- TransportBindingElementImporter.cs
- Mouse.cs
- UserMapPath.cs
- LineGeometry.cs
- XamlInt32CollectionSerializer.cs
- ObjectNotFoundException.cs
- EntityWrapperFactory.cs
- XmlNavigatorStack.cs
- PointHitTestResult.cs
- BatchServiceHost.cs
- ServiceInfo.cs
- LambdaExpression.cs
- AccessKeyManager.cs
- NativeMethods.cs
- MasterPageBuildProvider.cs
- DefaultTypeArgumentAttribute.cs
- XamlParser.cs
- XslVisitor.cs
- UnknownWrapper.cs
- Tuple.cs
- DefaultCompensation.cs
- TypefaceCollection.cs
- ScriptReference.cs
- Transform.cs
- XamlToRtfWriter.cs
- Expander.cs
- HelpKeywordAttribute.cs
- Double.cs
- Executor.cs
- ContextStaticAttribute.cs
- QuaternionAnimation.cs
- WebResponse.cs
- ConfigXmlAttribute.cs
- XPathSingletonIterator.cs
- Tokenizer.cs
- CircleEase.cs
- XmlUtilWriter.cs
- FastPropertyAccessor.cs
- InheritablePropertyChangeInfo.cs
- RawStylusInputCustomData.cs
- CharEnumerator.cs
- DeflateEmulationStream.cs
- StreamUpgradeInitiator.cs
- Rijndael.cs
- WebDescriptionAttribute.cs
- uribuilder.cs
- CookieParameter.cs
- HttpInputStream.cs
- ObjectManager.cs
- DateTime.cs
- ResourceProviderFactory.cs
- WinFormsSpinner.cs
- WebPartVerb.cs
- ApplicationProxyInternal.cs
- EventListenerClientSide.cs
- LineBreak.cs
- SqlStatistics.cs
- ProviderSettingsCollection.cs
- StringUtil.cs
- SiteOfOriginPart.cs
- PropertyMappingExceptionEventArgs.cs
- GlobalAllocSafeHandle.cs
- LOSFormatter.cs
- DataGridViewButtonCell.cs
- WorkItem.cs
- WorkflowExecutor.cs
- ListBox.cs
- RayMeshGeometry3DHitTestResult.cs
- CryptoHelper.cs