Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / xsp / System / Web / Extensions / ui / webcontrols / ListViewSortEventArgs.cs / 1 / ListViewSortEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
using System;
using System.Collections.Specialized;
using System.ComponentModel;
namespace System.Web.UI.WebControls {
[AspNetHostingPermission(System.Security.Permissions.SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(System.Security.Permissions.SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class ListViewSortEventArgs : CancelEventArgs {
private string _sortExpression;
private SortDirection _sortDirection;
public ListViewSortEventArgs(string sortExpression, SortDirection sortDirection)
: base(false) {
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.
//
//-----------------------------------------------------------------------------
using System;
using System.Collections.Specialized;
using System.ComponentModel;
namespace System.Web.UI.WebControls {
[AspNetHostingPermission(System.Security.Permissions.SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(System.Security.Permissions.SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class ListViewSortEventArgs : CancelEventArgs {
private string _sortExpression;
private SortDirection _sortDirection;
public ListViewSortEventArgs(string sortExpression, SortDirection sortDirection)
: base(false) {
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
- WebServicesInteroperability.cs
- XmlMtomReader.cs
- SurrogateEncoder.cs
- isolationinterop.cs
- GenericQueueSurrogate.cs
- RemoveStoryboard.cs
- ComponentEditorPage.cs
- HashCodeCombiner.cs
- DisposableCollectionWrapper.cs
- CheckBoxPopupAdapter.cs
- DependencyPropertyKey.cs
- RichTextBoxConstants.cs
- DataTableNewRowEvent.cs
- EasingKeyFrames.cs
- HelpExampleGenerator.cs
- MethodToken.cs
- PassportPrincipal.cs
- AttributeCollection.cs
- bidPrivateBase.cs
- IgnoreFlushAndCloseStream.cs
- StorageTypeMapping.cs
- BlurEffect.cs
- UserMapPath.cs
- SiteMapNodeItemEventArgs.cs
- GestureRecognitionResult.cs
- DesigntimeLicenseContextSerializer.cs
- SoapConverter.cs
- MsmqTransportBindingElement.cs
- ComponentEditorPage.cs
- ColumnPropertiesGroup.cs
- _AutoWebProxyScriptWrapper.cs
- GradientBrush.cs
- ProfileGroupSettings.cs
- XmlSchemaAnnotated.cs
- log.cs
- messageonlyhwndwrapper.cs
- DragEvent.cs
- SqlFunctions.cs
- NetTcpBindingCollectionElement.cs
- PixelFormatConverter.cs
- MappingSource.cs
- ToolStripManager.cs
- HotSpotCollection.cs
- TextSelectionHighlightLayer.cs
- LinkedResourceCollection.cs
- XamlStream.cs
- HtmlForm.cs
- IFlowDocumentViewer.cs
- MappingItemCollection.cs
- PhysicalAddress.cs
- CachingHintValidation.cs
- MatchingStyle.cs
- ExceptionHandler.cs
- CheckedPointers.cs
- EntityDataSourceQueryBuilder.cs
- Monitor.cs
- MaskedTextBox.cs
- ServiceDeploymentInfo.cs
- DbConnectionHelper.cs
- XmlSignatureManifest.cs
- SerializerDescriptor.cs
- filewebrequest.cs
- DesignerVerbCollection.cs
- GeneralTransform.cs
- ObjectViewQueryResultData.cs
- _ServiceNameStore.cs
- BehaviorDragDropEventArgs.cs
- TextEditor.cs
- ControlDesigner.cs
- KerberosTicketHashIdentifierClause.cs
- KeyValueInternalCollection.cs
- Manipulation.cs
- HwndProxyElementProvider.cs
- PersianCalendar.cs
- EndSelectCardRequest.cs
- ImageDrawing.cs
- COM2PropertyDescriptor.cs
- CodeCommentStatement.cs
- GroupLabel.cs
- Annotation.cs
- InitiatorSessionSymmetricTransportSecurityProtocol.cs
- XMLDiffLoader.cs
- FormsAuthenticationUser.cs
- ComboBox.cs
- LineSegment.cs
- HttpCacheParams.cs
- DataGridRow.cs
- DesignerTextBoxAdapter.cs
- ContextItem.cs
- ControlCollection.cs
- ToolStripProgressBar.cs
- SessionEndedEventArgs.cs
- URLIdentityPermission.cs
- ScrollItemPattern.cs
- RuntimeConfigLKG.cs
- FileRecordSequenceCompletedAsyncResult.cs
- wgx_render.cs
- ObjectQuery.cs
- RegexWorker.cs
- TableLayoutStyle.cs