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
- BufferedReadStream.cs
- ManagementObjectSearcher.cs
- OracleRowUpdatingEventArgs.cs
- TransformGroup.cs
- DataGridViewCellStyle.cs
- ListView.cs
- GridViewRowCollection.cs
- ClientScriptManager.cs
- SEHException.cs
- XmlObjectSerializerWriteContext.cs
- DataServiceKeyAttribute.cs
- Trace.cs
- IconHelper.cs
- UserControl.cs
- __Error.cs
- DocumentPageHost.cs
- XmlCharCheckingWriter.cs
- FileDialogCustomPlace.cs
- WebPartTransformerCollection.cs
- SelectionWordBreaker.cs
- SharedPersonalizationStateInfo.cs
- NumberSubstitution.cs
- InputScope.cs
- SimpleFieldTemplateUserControl.cs
- InheritanceUI.cs
- XmlIterators.cs
- SymLanguageType.cs
- PrinterUnitConvert.cs
- UnsafeNativeMethods.cs
- ToolStripLabel.cs
- AppLevelCompilationSectionCache.cs
- BasePropertyDescriptor.cs
- CatalogUtil.cs
- _IPv4Address.cs
- LinqDataSourceView.cs
- WindowShowOrOpenTracker.cs
- XPathNode.cs
- TextWriter.cs
- Interlocked.cs
- CustomPopupPlacement.cs
- Separator.cs
- StringArrayConverter.cs
- InputBuffer.cs
- Exception.cs
- ClientRolePrincipal.cs
- SiteMapProvider.cs
- Rule.cs
- ListContractAdapter.cs
- ProxyFragment.cs
- HitTestWithGeometryDrawingContextWalker.cs
- QuestionEventArgs.cs
- ZipIOFileItemStream.cs
- ListViewCancelEventArgs.cs
- FileNotFoundException.cs
- SourceElementsCollection.cs
- TrackingDataItem.cs
- HttpModuleAction.cs
- AnonymousIdentificationModule.cs
- ProxyWebPart.cs
- SystemWebSectionGroup.cs
- DataKey.cs
- ShapeTypeface.cs
- CapabilitiesSection.cs
- DataBindingList.cs
- Effect.cs
- KeyedCollection.cs
- InsufficientMemoryException.cs
- ConsoleCancelEventArgs.cs
- odbcmetadatacollectionnames.cs
- ProgressBar.cs
- MetabaseSettingsIis7.cs
- OciHandle.cs
- EntityParameter.cs
- WindowInteractionStateTracker.cs
- FastEncoderWindow.cs
- SyndicationFeed.cs
- XmlQueryType.cs
- DataGridAddNewRow.cs
- ImageInfo.cs
- AggregateNode.cs
- MainMenu.cs
- HtmlTableRowCollection.cs
- DataObjectSettingDataEventArgs.cs
- HttpStaticObjectsCollectionBase.cs
- httpapplicationstate.cs
- FileRegion.cs
- CodeTypeDeclaration.cs
- CallInfo.cs
- RawStylusInput.cs
- storepermission.cs
- BaseDataListActionList.cs
- ModulesEntry.cs
- ReferencedCollectionType.cs
- BaseParser.cs
- SecurityUtils.cs
- AttributeUsageAttribute.cs
- Itemizer.cs
- DataColumnSelectionConverter.cs
- XmlDomTextWriter.cs
- ApplicationGesture.cs