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
- FSWPathEditor.cs
- SqlCommandBuilder.cs
- PeerInputChannelListener.cs
- DataGridRowHeaderAutomationPeer.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- CompilerGlobalScopeAttribute.cs
- CheckBox.cs
- SqlUserDefinedAggregateAttribute.cs
- CommonProperties.cs
- BuildProvider.cs
- HttpRequestCacheValidator.cs
- EdmFunction.cs
- basemetadatamappingvisitor.cs
- Base64Decoder.cs
- ConnectorSelectionGlyph.cs
- LessThan.cs
- IteratorFilter.cs
- SqlDataReader.cs
- BindingCollection.cs
- AppSettingsExpressionBuilder.cs
- DataViewManagerListItemTypeDescriptor.cs
- DataView.cs
- NegatedCellConstant.cs
- SHA384.cs
- ProxyWebPartManager.cs
- TextRangeEditLists.cs
- XPathNodeIterator.cs
- SqlDuplicator.cs
- ToolZone.cs
- RuntimeConfigLKG.cs
- ItemTypeToolStripMenuItem.cs
- LoginUtil.cs
- CodeAttributeArgumentCollection.cs
- BrushMappingModeValidation.cs
- TableSectionStyle.cs
- WebPartRestoreVerb.cs
- RichTextBox.cs
- SoapExtensionStream.cs
- _BaseOverlappedAsyncResult.cs
- WebPartMenuStyle.cs
- DeviceContext2.cs
- Part.cs
- ToolBar.cs
- errorpatternmatcher.cs
- BasicExpandProvider.cs
- ToolStripItemCollection.cs
- ContextInformation.cs
- DbProviderConfigurationHandler.cs
- WebServiceParameterData.cs
- String.cs
- KeyTime.cs
- Exception.cs
- TokenBasedSet.cs
- NavigationWindowAutomationPeer.cs
- AppSettingsSection.cs
- WebPartConnectionsConnectVerb.cs
- DoubleKeyFrameCollection.cs
- VBCodeProvider.cs
- FontStyleConverter.cs
- StylusPointProperties.cs
- BooleanStorage.cs
- StringAttributeCollection.cs
- StreamProxy.cs
- HMACSHA512.cs
- StringConcat.cs
- X509ChainPolicy.cs
- Delegate.cs
- ContractCodeDomInfo.cs
- ToolboxDataAttribute.cs
- ActivityScheduledQuery.cs
- ServiceNameElement.cs
- MainMenu.cs
- Int64Animation.cs
- XmlSchemaSimpleTypeRestriction.cs
- SpeakInfo.cs
- SqlClientWrapperSmiStreamChars.cs
- EDesignUtil.cs
- Slider.cs
- ScaleTransform3D.cs
- _FixedSizeReader.cs
- ImageKeyConverter.cs
- RuleConditionDialog.cs
- SpeechEvent.cs
- CurrencyWrapper.cs
- SecurityDescriptor.cs
- BamlResourceSerializer.cs
- ProxyWebPart.cs
- ConfigurationFileMap.cs
- BinaryCommonClasses.cs
- WebPartCollection.cs
- ToolStripItemRenderEventArgs.cs
- Int16.cs
- ReferenceConverter.cs
- CodeVariableReferenceExpression.cs
- StylusDevice.cs
- HtmlInputRadioButton.cs
- StyleTypedPropertyAttribute.cs
- WmlPageAdapter.cs
- InkCanvas.cs
- XmlReflectionMember.cs