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
- SafeLibraryHandle.cs
- objectquery_tresulttype.cs
- SqlRecordBuffer.cs
- HelpKeywordAttribute.cs
- User.cs
- ReferencedType.cs
- SiteMapDataSource.cs
- TextFormatterContext.cs
- InvokePatternIdentifiers.cs
- QueryStringParameter.cs
- Region.cs
- SerializationFieldInfo.cs
- LinkedResource.cs
- EditorResources.cs
- ResourceBinder.cs
- XmlBinaryWriterSession.cs
- LayoutManager.cs
- PropertyStore.cs
- ConfigurationCollectionAttribute.cs
- Partitioner.cs
- Geometry3D.cs
- InputLangChangeRequestEvent.cs
- XamlInt32CollectionSerializer.cs
- HTTPNotFoundHandler.cs
- BaseCodePageEncoding.cs
- XmlSerializer.cs
- TextSerializer.cs
- HtmlInputSubmit.cs
- EventRouteFactory.cs
- EditableTreeList.cs
- HttpCookiesSection.cs
- DocumentGridPage.cs
- BasicCommandTreeVisitor.cs
- FolderLevelBuildProviderCollection.cs
- AsyncOperation.cs
- ClientOptions.cs
- Stacktrace.cs
- TextBox.cs
- ToolBarDesigner.cs
- BuildResultCache.cs
- DiagnosticsConfigurationHandler.cs
- PermissionSetEnumerator.cs
- ErrorRuntimeConfig.cs
- UnsafeNativeMethods.cs
- Queue.cs
- DataServiceEntityAttribute.cs
- SelectionItemPattern.cs
- hwndwrapper.cs
- ProxyGenerator.cs
- ThrowHelper.cs
- DataGridViewColumnCollection.cs
- SmiTypedGetterSetter.cs
- EntityContainerAssociationSetEnd.cs
- safex509handles.cs
- ErrorStyle.cs
- OpenTypeLayout.cs
- RoutedCommand.cs
- PerformanceCounterManager.cs
- DeclaredTypeValidatorAttribute.cs
- FileDetails.cs
- ToolStripItemEventArgs.cs
- ImpersonationContext.cs
- EncodingStreamWrapper.cs
- ManipulationDevice.cs
- NavigateEvent.cs
- Selection.cs
- X509Utils.cs
- EntityReference.cs
- Membership.cs
- SiteMembershipCondition.cs
- TextBoxView.cs
- TypeBuilderInstantiation.cs
- MruCache.cs
- CommonXSendMessage.cs
- TdsParserSessionPool.cs
- DataSourceListEditor.cs
- ProcessProtocolHandler.cs
- Utils.cs
- BaseTemplateBuildProvider.cs
- webproxy.cs
- FixedSOMPageConstructor.cs
- LockingPersistenceProvider.cs
- SerializationObjectManager.cs
- IArgumentProvider.cs
- SHA384.cs
- WasAdminWrapper.cs
- SchemaComplexType.cs
- MethodExpr.cs
- Pen.cs
- VerticalAlignConverter.cs
- StateRuntime.cs
- ColumnClickEvent.cs
- QueryResponse.cs
- ClassicBorderDecorator.cs
- WCFModelStrings.Designer.cs
- XmlAttributeCollection.cs
- WindowsGrip.cs
- ReferencedAssembly.cs
- RecordsAffectedEventArgs.cs
- AnimationTimeline.cs