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
- SecurityContext.cs
- HyperLinkField.cs
- Switch.cs
- EventManager.cs
- CodeVariableReferenceExpression.cs
- GeneralTransform2DTo3DTo2D.cs
- AsyncOperation.cs
- XmlTypeMapping.cs
- VariableModifiersHelper.cs
- BindingSource.cs
- VariantWrapper.cs
- ParameterElementCollection.cs
- ProviderConnectionPointCollection.cs
- PenThreadPool.cs
- WebPartConnectionsEventArgs.cs
- WebServiceEnumData.cs
- DataSetMappper.cs
- Rect.cs
- KeyNameIdentifierClause.cs
- DataServiceQueryProvider.cs
- COAUTHINFO.cs
- ExceptionAggregator.cs
- PrefixQName.cs
- EpmCustomContentWriterNodeData.cs
- PersonalizationStateInfoCollection.cs
- Stackframe.cs
- AnonymousIdentificationModule.cs
- ContentPlaceHolder.cs
- CallbackWrapper.cs
- AssemblySettingAttributes.cs
- ProcessHostFactoryHelper.cs
- PenThread.cs
- BufferedOutputStream.cs
- AlphabeticalEnumConverter.cs
- EdmFunctions.cs
- PointValueSerializer.cs
- FtpWebResponse.cs
- RawUIStateInputReport.cs
- FormsAuthenticationEventArgs.cs
- SchemaElementLookUpTable.cs
- HasCopySemanticsAttribute.cs
- ProfileEventArgs.cs
- XmlTextWriter.cs
- TextBoxRenderer.cs
- ToolStripContentPanel.cs
- SignatureGenerator.cs
- DataGridViewEditingControlShowingEventArgs.cs
- LifetimeServices.cs
- ServiceHostingEnvironmentSection.cs
- Frame.cs
- OleDbParameterCollection.cs
- VirtualDirectoryMapping.cs
- ProgressBarAutomationPeer.cs
- OperatorExpressions.cs
- StylusPointPropertyId.cs
- ProxyElement.cs
- TableCellAutomationPeer.cs
- BindingManagerDataErrorEventArgs.cs
- MemberCollection.cs
- NamedPipeTransportBindingElement.cs
- ComPlusDiagnosticTraceSchemas.cs
- BigInt.cs
- DigestComparer.cs
- ListViewSelectEventArgs.cs
- KeyMatchBuilder.cs
- WebExceptionStatus.cs
- XmlDataSource.cs
- WindowsBrush.cs
- DoubleSumAggregationOperator.cs
- IdnMapping.cs
- LinkUtilities.cs
- ImageCodecInfoPrivate.cs
- TrayIconDesigner.cs
- Int64.cs
- ExtenderControl.cs
- BamlRecordReader.cs
- TypeConverterAttribute.cs
- ConfigXmlCDataSection.cs
- PropertyGridView.cs
- HtmlForm.cs
- AutomationElementCollection.cs
- AutomationElementCollection.cs
- XmlCharType.cs
- RadioButtonList.cs
- CredentialCache.cs
- UpdateEventArgs.cs
- KeyMatchBuilder.cs
- HttpFileCollection.cs
- DataChangedEventManager.cs
- HwndSubclass.cs
- DurationConverter.cs
- TouchesOverProperty.cs
- SortedSetDebugView.cs
- Base64Decoder.cs
- ConfigurationElement.cs
- StrongNameUtility.cs
- TextParaLineResult.cs
- SocketAddress.cs
- ObjectAnimationUsingKeyFrames.cs
- UserValidatedEventArgs.cs