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
- XPathChildIterator.cs
- QueryReaderSettings.cs
- VectorCollection.cs
- LicenseContext.cs
- SqlVersion.cs
- TcpHostedTransportConfiguration.cs
- GridProviderWrapper.cs
- ValueProviderWrapper.cs
- PixelFormats.cs
- DbException.cs
- TableAutomationPeer.cs
- Overlapped.cs
- BordersPage.cs
- QilGeneratorEnv.cs
- SqlServer2KCompatibilityAnnotation.cs
- ToolStripSystemRenderer.cs
- LowerCaseStringConverter.cs
- PolyLineSegmentFigureLogic.cs
- AmbientValueAttribute.cs
- SmiMetaDataProperty.cs
- DataSourceView.cs
- MethodCallConverter.cs
- TypeUtils.cs
- CatalogPartChrome.cs
- PathGeometry.cs
- BitmapPalettes.cs
- DocumentPage.cs
- ValueChangedEventManager.cs
- CodeIdentifiers.cs
- Reference.cs
- BinarySerializer.cs
- BitmapPalettes.cs
- ElementFactory.cs
- ToolStripComboBox.cs
- ImportCatalogPart.cs
- PathGeometry.cs
- HttpClientCertificate.cs
- PathGradientBrush.cs
- MarkupCompilePass2.cs
- BasicHttpMessageSecurity.cs
- LayoutEditorPart.cs
- GestureRecognitionResult.cs
- UidPropertyAttribute.cs
- FacetValueContainer.cs
- SendSecurityHeaderElement.cs
- DataObject.cs
- TextTreeFixupNode.cs
- DeclaredTypeValidator.cs
- IndexedGlyphRun.cs
- serverconfig.cs
- InfoCardService.cs
- SmiEventSink.cs
- ProcessingInstructionAction.cs
- CodeCompileUnit.cs
- MsmqHostedTransportConfiguration.cs
- EntryWrittenEventArgs.cs
- DataGridViewComboBoxCell.cs
- LocalServiceSecuritySettingsElement.cs
- _SpnDictionary.cs
- WindowsSpinner.cs
- ConditionalAttribute.cs
- DrawingCollection.cs
- FlowDocumentPageViewerAutomationPeer.cs
- RegexMatchCollection.cs
- StatusBarItemAutomationPeer.cs
- RuleSettingsCollection.cs
- MimeMultiPart.cs
- ResetableIterator.cs
- RequestBringIntoViewEventArgs.cs
- PerformanceCounterNameAttribute.cs
- ServiceDescription.cs
- MethodRental.cs
- DataConnectionHelper.cs
- ObjectIDGenerator.cs
- WindowInteropHelper.cs
- DependencyPropertyChangedEventArgs.cs
- AssociatedControlConverter.cs
- InputScopeManager.cs
- EventSource.cs
- CorrelationQuery.cs
- WindowsEditBoxRange.cs
- HandledMouseEvent.cs
- PageThemeCodeDomTreeGenerator.cs
- DeferredElementTreeState.cs
- RegistrationServices.cs
- SynchronousReceiveElement.cs
- InstanceKeyView.cs
- PropertyChangingEventArgs.cs
- TimerTable.cs
- FunctionQuery.cs
- SafeRegistryHandle.cs
- CustomErrorsSection.cs
- NumericUpDownAccelerationCollection.cs
- IgnorePropertiesAttribute.cs
- ContentElement.cs
- DatatypeImplementation.cs
- ClientApiGenerator.cs
- SelectionItemPattern.cs
- XsdBuilder.cs
- RenderingBiasValidation.cs