Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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;
}
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StylusCaptureWithinProperty.cs
- RawStylusSystemGestureInputReport.cs
- SqlRewriteScalarSubqueries.cs
- RawKeyboardInputReport.cs
- HealthMonitoringSectionHelper.cs
- FormsAuthenticationModule.cs
- DateTimeEditor.cs
- XmlDataSourceNodeDescriptor.cs
- MetadataFile.cs
- EntitySqlQueryCacheKey.cs
- QilStrConcat.cs
- AspNetSynchronizationContext.cs
- XmlDictionaryString.cs
- NameValuePermission.cs
- BaseComponentEditor.cs
- WebMessageEncodingBindingElement.cs
- SchemaComplexType.cs
- ProfileSettings.cs
- DataBoundControlHelper.cs
- SafeLocalMemHandle.cs
- serverconfig.cs
- SqlBulkCopy.cs
- InternalCache.cs
- XPathNavigator.cs
- CacheMemory.cs
- EntityDataSourceWrapperCollection.cs
- CompoundFileStreamReference.cs
- AttributeData.cs
- FileEnumerator.cs
- BasicDesignerLoader.cs
- Range.cs
- MemberProjectedSlot.cs
- XslCompiledTransform.cs
- IndicShape.cs
- VariableDesigner.xaml.cs
- ExtractedStateEntry.cs
- EventSinkActivity.cs
- SimpleParser.cs
- Geometry.cs
- TabItemWrapperAutomationPeer.cs
- FixUp.cs
- KnowledgeBase.cs
- StoreItemCollection.cs
- BitmapEffect.cs
- TreeViewImageKeyConverter.cs
- TextServicesDisplayAttribute.cs
- ZipIOCentralDirectoryBlock.cs
- NativeWindow.cs
- XmlSchemaInclude.cs
- Int16.cs
- TrustLevel.cs
- AvTraceFormat.cs
- IndependentAnimationStorage.cs
- CodeIdentifier.cs
- ComboBoxAutomationPeer.cs
- LicenseManager.cs
- EventData.cs
- DataGridView.cs
- LocatorBase.cs
- IDataContractSurrogate.cs
- Win32Native.cs
- ContextItem.cs
- PersonalizationProviderHelper.cs
- CrossSiteScriptingValidation.cs
- LogSwitch.cs
- SqlCacheDependencyDatabase.cs
- TransactionChannelListener.cs
- BindStream.cs
- DataGrid.cs
- QilExpression.cs
- AppSettingsReader.cs
- EncoderExceptionFallback.cs
- ECDiffieHellmanCng.cs
- AndCondition.cs
- CellParagraph.cs
- DesignTimeVisibleAttribute.cs
- ListViewInsertEventArgs.cs
- AsymmetricAlgorithm.cs
- DBBindings.cs
- ListView.cs
- FusionWrap.cs
- TreeView.cs
- SHA384.cs
- Encoding.cs
- BulletedListEventArgs.cs
- PropertyEntry.cs
- GroupItem.cs
- TextServicesProperty.cs
- OptimizerPatterns.cs
- DefaultAssemblyResolver.cs
- OleServicesContext.cs
- DynamicMetaObjectBinder.cs
- XmlHierarchyData.cs
- UnsafeNativeMethods.cs
- BufferModesCollection.cs
- StorageModelBuildProvider.cs
- PrintingPermission.cs
- ReflectPropertyDescriptor.cs
- ProtocolsConfigurationEntry.cs
- HtmlInputHidden.cs