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
- PeerCustomResolverElement.cs
- DependencyObjectProvider.cs
- EnumCodeDomSerializer.cs
- SafeFileMapViewHandle.cs
- versioninfo.cs
- DataView.cs
- Region.cs
- LocationUpdates.cs
- NetCodeGroup.cs
- XamlWrappingReader.cs
- CountAggregationOperator.cs
- XmlAnyAttributeAttribute.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- SwitchExpression.cs
- FunctionParameter.cs
- OutputCacheProfileCollection.cs
- ConfigXmlElement.cs
- FontUnit.cs
- DataTableMappingCollection.cs
- Error.cs
- CopyNamespacesAction.cs
- AssociatedControlConverter.cs
- DbDataAdapter.cs
- DataSpaceManager.cs
- EventLogPermissionEntry.cs
- InputBuffer.cs
- ImageMapEventArgs.cs
- ExtensionQuery.cs
- PaperSize.cs
- InProcStateClientManager.cs
- GenericAuthenticationEventArgs.cs
- BidOverLoads.cs
- X509ChainPolicy.cs
- Double.cs
- PrimarySelectionGlyph.cs
- ConnectionInterfaceCollection.cs
- Type.cs
- PeerCollaboration.cs
- DBNull.cs
- DataRow.cs
- ExtensionSimplifierMarkupObject.cs
- SoapBinding.cs
- MemberDescriptor.cs
- LayoutUtils.cs
- XmlArrayAttribute.cs
- wgx_sdk_version.cs
- BindingGroup.cs
- SecurityElement.cs
- ExtensionWindowResizeGrip.cs
- QuadraticBezierSegment.cs
- SymmetricKey.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- SpotLight.cs
- FlowLayout.cs
- dataobject.cs
- PeerResolverSettings.cs
- AppDomainManager.cs
- HtmlControlPersistable.cs
- SingleAnimation.cs
- SqlConnectionHelper.cs
- PerformanceCounterPermissionEntry.cs
- basevalidator.cs
- EntityTypeEmitter.cs
- CodePrimitiveExpression.cs
- SamlAuthenticationClaimResource.cs
- LoadWorkflowCommand.cs
- FilterQueryOptionExpression.cs
- XmlValidatingReader.cs
- VariableModifiersHelper.cs
- ParserOptions.cs
- EntityDataSourceContextCreatingEventArgs.cs
- FrameworkTextComposition.cs
- SqlFunctionAttribute.cs
- EventEntry.cs
- StyleSelector.cs
- unitconverter.cs
- EnumDataContract.cs
- OwnerDrawPropertyBag.cs
- IndependentAnimationStorage.cs
- OrthographicCamera.cs
- SpeechUI.cs
- QilIterator.cs
- TraceListener.cs
- DbBuffer.cs
- HttpHandler.cs
- SystemUnicastIPAddressInformation.cs
- ipaddressinformationcollection.cs
- GraphicsPathIterator.cs
- GiveFeedbackEventArgs.cs
- SharedRuntimeState.cs
- BitStack.cs
- ReadOnlyCollection.cs
- ImageFormat.cs
- WindowsFont.cs
- TreeNodeStyleCollection.cs
- TableLayoutPanelDesigner.cs
- DataControlFieldTypeEditor.cs
- RsaSecurityTokenAuthenticator.cs
- ExeContext.cs
- SecureStringHasher.cs