Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewSortCompareEventArgs.cs / 1 / DataGridViewSortCompareEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Windows.Forms
{
using System;
using System.Diagnostics;
using System.ComponentModel;
///
public class DataGridViewSortCompareEventArgs : HandledEventArgs
{
private DataGridViewColumn dataGridViewColumn;
private object cellValue1, cellValue2;
private int sortResult, rowIndex1, rowIndex2;
///
public DataGridViewSortCompareEventArgs(DataGridViewColumn dataGridViewColumn,
object cellValue1,
object cellValue2,
int rowIndex1,
int rowIndex2)
{
Debug.Assert(dataGridViewColumn != null);
Debug.Assert(dataGridViewColumn.Index >= 0);
this.dataGridViewColumn = dataGridViewColumn;
this.cellValue1 = cellValue1;
this.cellValue2 = cellValue2;
this.rowIndex1 = rowIndex1;
this.rowIndex2 = rowIndex2;
}
///
public object CellValue1
{
get
{
return this.cellValue1;
}
}
///
public object CellValue2
{
get
{
return this.cellValue2;
}
}
///
public DataGridViewColumn Column
{
get
{
return this.dataGridViewColumn;
}
}
///
public int RowIndex1
{
get
{
return this.rowIndex1;
}
}
///
public int RowIndex2
{
get
{
return this.rowIndex2;
}
}
///
public int SortResult
{
get
{
return this.sortResult;
}
set
{
this.sortResult = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Windows.Forms
{
using System;
using System.Diagnostics;
using System.ComponentModel;
///
public class DataGridViewSortCompareEventArgs : HandledEventArgs
{
private DataGridViewColumn dataGridViewColumn;
private object cellValue1, cellValue2;
private int sortResult, rowIndex1, rowIndex2;
///
public DataGridViewSortCompareEventArgs(DataGridViewColumn dataGridViewColumn,
object cellValue1,
object cellValue2,
int rowIndex1,
int rowIndex2)
{
Debug.Assert(dataGridViewColumn != null);
Debug.Assert(dataGridViewColumn.Index >= 0);
this.dataGridViewColumn = dataGridViewColumn;
this.cellValue1 = cellValue1;
this.cellValue2 = cellValue2;
this.rowIndex1 = rowIndex1;
this.rowIndex2 = rowIndex2;
}
///
public object CellValue1
{
get
{
return this.cellValue1;
}
}
///
public object CellValue2
{
get
{
return this.cellValue2;
}
}
///
public DataGridViewColumn Column
{
get
{
return this.dataGridViewColumn;
}
}
///
public int RowIndex1
{
get
{
return this.rowIndex1;
}
}
///
public int RowIndex2
{
get
{
return this.rowIndex2;
}
}
///
public int SortResult
{
get
{
return this.sortResult;
}
set
{
this.sortResult = 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
- GeometryGroup.cs
- SynchronousSendBindingElement.cs
- RelatedEnd.cs
- CustomAttribute.cs
- CloudCollection.cs
- EmptyReadOnlyDictionaryInternal.cs
- DeploymentSection.cs
- GenericEnumerator.cs
- XmlImplementation.cs
- CompilerCollection.cs
- QilXmlReader.cs
- OuterGlowBitmapEffect.cs
- WindowsMenu.cs
- GradientBrush.cs
- TimeSpanStorage.cs
- RegexWorker.cs
- DbCommandDefinition.cs
- BitmapSourceSafeMILHandle.cs
- ActivityValidator.cs
- FileDialog.cs
- AppearanceEditorPart.cs
- Classification.cs
- Parameter.cs
- ForwardPositionQuery.cs
- ModelPerspective.cs
- CustomLineCap.cs
- VectorKeyFrameCollection.cs
- DynamicArgumentDesigner.xaml.cs
- EntityDataSourceWrapper.cs
- PublisherMembershipCondition.cs
- InternalEnumValidatorAttribute.cs
- Function.cs
- SessionPageStateSection.cs
- GcSettings.cs
- NamedPipeActivation.cs
- ContextStaticAttribute.cs
- SqlOuterApplyReducer.cs
- ProfileManager.cs
- ClientConfigurationHost.cs
- XmlSchemaInfo.cs
- ProfessionalColorTable.cs
- RecognizedWordUnit.cs
- QueryHandler.cs
- FixedSOMTable.cs
- UnmanagedBitmapWrapper.cs
- ActivityCollectionMarkupSerializer.cs
- KerberosRequestorSecurityTokenAuthenticator.cs
- ItemChangedEventArgs.cs
- XmlParser.cs
- RemoteDebugger.cs
- TemplateKey.cs
- UnauthorizedAccessException.cs
- WeakHashtable.cs
- RegexWriter.cs
- DataConnectionHelper.cs
- ObjectDataProvider.cs
- DBPropSet.cs
- securitymgrsite.cs
- AutomationPeer.cs
- SqlWorkflowPersistenceService.cs
- DelegateBodyWriter.cs
- KeyValueSerializer.cs
- AssemblyCache.cs
- MailWriter.cs
- Msec.cs
- BooleanFacetDescriptionElement.cs
- SettingsPropertyNotFoundException.cs
- InstanceNormalEvent.cs
- CapabilitiesState.cs
- ColorPalette.cs
- Visitors.cs
- XmlBufferReader.cs
- InstancePersistenceEvent.cs
- LineVisual.cs
- X509Certificate.cs
- DbConnectionPoolIdentity.cs
- SymbolEqualComparer.cs
- StringStorage.cs
- SqlPersonalizationProvider.cs
- HttpHostedTransportConfiguration.cs
- KerberosSecurityTokenAuthenticator.cs
- KerberosTicketHashIdentifierClause.cs
- ReadOnlyObservableCollection.cs
- NetStream.cs
- InternalPermissions.cs
- StringConcat.cs
- ServiceHostingEnvironmentSection.cs
- peersecurityelement.cs
- UpdateExpressionVisitor.cs
- WebBrowsableAttribute.cs
- PlainXmlDeserializer.cs
- webeventbuffer.cs
- Config.cs
- ServiceContractDetailViewControl.cs
- RoutingTable.cs
- InternalConfigEventArgs.cs
- DropShadowEffect.cs
- PeerNameRecord.cs
- QueueAccessMode.cs
- HttpModulesInstallComponent.cs