Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- PrimitiveDataContract.cs
- CacheOutputQuery.cs
- ButtonBaseAutomationPeer.cs
- OdbcInfoMessageEvent.cs
- RequestCacheValidator.cs
- DataBoundControlAdapter.cs
- AncestorChangedEventArgs.cs
- MissingFieldException.cs
- WsatServiceCertificate.cs
- CodeIdentifiers.cs
- DesignTimeTemplateParser.cs
- XmlEncodedRawTextWriter.cs
- HttpStreamFormatter.cs
- StreamGeometry.cs
- RecognizerStateChangedEventArgs.cs
- SqlInternalConnectionTds.cs
- CacheModeValueSerializer.cs
- ExpressionCopier.cs
- SystemColors.cs
- StopStoryboard.cs
- DefaultObjectSerializer.cs
- CodeNamespaceImport.cs
- PageAsyncTask.cs
- ToolStripControlHost.cs
- IdentityElement.cs
- DefaultValueTypeConverter.cs
- HttpCapabilitiesEvaluator.cs
- GroupItem.cs
- SoapReflectionImporter.cs
- JournalEntry.cs
- HttpAsyncResult.cs
- HelpProvider.cs
- EpmSyndicationContentSerializer.cs
- VariableAction.cs
- MarkupExtensionParser.cs
- MsmqHostedTransportManager.cs
- DateBoldEvent.cs
- TextServicesDisplayAttribute.cs
- DoubleLinkListEnumerator.cs
- Mappings.cs
- Maps.cs
- XmlDocumentSerializer.cs
- BamlResourceDeserializer.cs
- Environment.cs
- IISMapPath.cs
- SqlNodeAnnotations.cs
- WebBodyFormatMessageProperty.cs
- TextProperties.cs
- IndexingContentUnit.cs
- ProgressBar.cs
- ThreadInterruptedException.cs
- XmlArrayAttribute.cs
- XMLDiffLoader.cs
- BamlResourceDeserializer.cs
- Zone.cs
- UserValidatedEventArgs.cs
- XPathSelfQuery.cs
- SimpleWebHandlerParser.cs
- ReadOnlyDictionary.cs
- DeclarationUpdate.cs
- FacetChecker.cs
- AttributeInfo.cs
- RadioButtonStandardAdapter.cs
- SurrogateSelector.cs
- WebPartVerbsEventArgs.cs
- KeyValuePair.cs
- LoadRetryAsyncResult.cs
- SqlDataRecord.cs
- NGCSerializer.cs
- Constraint.cs
- ObjectDataSourceStatusEventArgs.cs
- GraphicsContainer.cs
- SignatureGenerator.cs
- BinaryObjectReader.cs
- Mapping.cs
- LinqDataSourceUpdateEventArgs.cs
- CompiledXpathExpr.cs
- PaginationProgressEventArgs.cs
- ControlBuilderAttribute.cs
- AsyncDataRequest.cs
- Constraint.cs
- ObjectManager.cs
- Expander.cs
- CodeCatchClauseCollection.cs
- TabControlEvent.cs
- WorkflowInstanceQuery.cs
- LazyTextWriterCreator.cs
- PowerStatus.cs
- XPathBinder.cs
- ModelTypeConverter.cs
- XmlSignificantWhitespace.cs
- HasCopySemanticsAttribute.cs
- SoapIncludeAttribute.cs
- SafeBitVector32.cs
- MessageDecoder.cs
- DataGridCommandEventArgs.cs
- DoubleLinkListEnumerator.cs
- HideDisabledControlAdapter.cs
- TableLayoutSettingsTypeConverter.cs
- ProvidePropertyAttribute.cs