Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / GridViewSortEventArgs.cs / 1305376 / GridViewSortEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Web.UI.WebControls {
using System;
using System.ComponentModel;
///
/// Provides data for the event of a .
///
///
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;
///
/// Provides data for the event of a .
///
///
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
- XmlTextReaderImplHelpers.cs
- While.cs
- IResourceProvider.cs
- AsyncOperationManager.cs
- XPathEmptyIterator.cs
- SystemFonts.cs
- Converter.cs
- GiveFeedbackEvent.cs
- GroupJoinQueryOperator.cs
- RecipientIdentity.cs
- CategoryNameCollection.cs
- DateTimePicker.cs
- LayoutEngine.cs
- Descriptor.cs
- SmtpReplyReaderFactory.cs
- DbConnectionStringCommon.cs
- DetailsView.cs
- DelegateTypeInfo.cs
- DictionaryBase.cs
- OdbcDataAdapter.cs
- GlyphCache.cs
- WebPartCatalogCloseVerb.cs
- ContextQuery.cs
- NotifyCollectionChangedEventArgs.cs
- OptionalColumn.cs
- GridViewColumnHeader.cs
- RuntimeConfig.cs
- MessageBodyDescription.cs
- ManagedWndProcTracker.cs
- PolicyException.cs
- ComponentResourceKey.cs
- MarkupExtensionParser.cs
- InvalidEnumArgumentException.cs
- DelegatedStream.cs
- ClientApiGenerator.cs
- BuildManager.cs
- EmptyQuery.cs
- LoginName.cs
- MergeFilterQuery.cs
- CaseExpr.cs
- SelectionEditingBehavior.cs
- CellParagraph.cs
- XmlParserContext.cs
- AutomationPatternInfo.cs
- ListViewInsertEventArgs.cs
- StateRuntime.cs
- PrintPageEvent.cs
- TableItemProviderWrapper.cs
- CodeEventReferenceExpression.cs
- GenericRootAutomationPeer.cs
- ServiceMetadataPublishingElement.cs
- Size.cs
- BinaryUtilClasses.cs
- XmlnsCompatibleWithAttribute.cs
- ListViewPagedDataSource.cs
- QueryResults.cs
- XmlSerializerFactory.cs
- XmlWrappingReader.cs
- SystemUnicastIPAddressInformation.cs
- ExcludeFromCodeCoverageAttribute.cs
- CngProperty.cs
- ColorConvertedBitmapExtension.cs
- LicenseException.cs
- LinqToSqlWrapper.cs
- CircleHotSpot.cs
- Graph.cs
- RichTextBoxConstants.cs
- ArgumentNullException.cs
- XmlSchemaGroup.cs
- XmlSchemaInfo.cs
- DrawingImage.cs
- HtmlControlPersistable.cs
- XmlQueryCardinality.cs
- DataGridBoolColumn.cs
- ItemDragEvent.cs
- Keyboard.cs
- Pen.cs
- XXXInfos.cs
- UriTemplateTrieNode.cs
- RenderData.cs
- CollectionViewProxy.cs
- LocalizedNameDescriptionPair.cs
- FormViewDeletedEventArgs.cs
- GAC.cs
- Figure.cs
- Rotation3DAnimationUsingKeyFrames.cs
- XmlNamespaceDeclarationsAttribute.cs
- Run.cs
- LocalValueEnumerator.cs
- CommonServiceBehaviorElement.cs
- CodeSnippetTypeMember.cs
- BaseResourcesBuildProvider.cs
- UxThemeWrapper.cs
- Storyboard.cs
- MissingSatelliteAssemblyException.cs
- TextInfo.cs
- SerialStream.cs
- DesignerVerbToolStripMenuItem.cs
- SamlAudienceRestrictionCondition.cs
- SinglePageViewer.cs