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
- NativeMethods.cs
- HitTestFilterBehavior.cs
- HttpProfileBase.cs
- CachingHintValidation.cs
- RecognizedWordUnit.cs
- RsaSecurityTokenAuthenticator.cs
- StylusPointProperty.cs
- SafeFileMappingHandle.cs
- ErrorWrapper.cs
- StringOutput.cs
- SqlBulkCopyColumnMappingCollection.cs
- HttpCookiesSection.cs
- WebReferenceCollection.cs
- PeerCollaboration.cs
- DefaultValueConverter.cs
- SqlDataSourceFilteringEventArgs.cs
- CellParaClient.cs
- TabletDevice.cs
- WebBrowser.cs
- Effect.cs
- HttpPostedFile.cs
- Base64Stream.cs
- SqlConnectionStringBuilder.cs
- Int16.cs
- XPathDocument.cs
- TreeViewItemAutomationPeer.cs
- CleanUpVirtualizedItemEventArgs.cs
- XmlSchemaType.cs
- PathGradientBrush.cs
- SafeMILHandle.cs
- DocumentViewerBaseAutomationPeer.cs
- DetailsViewRowCollection.cs
- IFlowDocumentViewer.cs
- TreeNodeCollection.cs
- SoapRpcServiceAttribute.cs
- TableProviderWrapper.cs
- ModuleConfigurationInfo.cs
- MediaTimeline.cs
- DefaultValueAttribute.cs
- LookupBindingPropertiesAttribute.cs
- IndexingContentUnit.cs
- SyndicationDeserializer.cs
- DiagnosticsConfiguration.cs
- DescendantQuery.cs
- ContextItemManager.cs
- ActiveXContainer.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- AlignmentYValidation.cs
- UdpDiscoveryEndpointElement.cs
- WsatTransactionHeader.cs
- DirectoryObjectSecurity.cs
- CallTemplateAction.cs
- Decimal.cs
- SystemUdpStatistics.cs
- CommandHelper.cs
- GiveFeedbackEventArgs.cs
- RefreshPropertiesAttribute.cs
- ResourceFallbackManager.cs
- MenuItem.cs
- FillErrorEventArgs.cs
- GridViewItemAutomationPeer.cs
- VirtualizedContainerService.cs
- ListComponentEditor.cs
- WindowsSysHeader.cs
- NamespaceList.cs
- UnsafeNativeMethods.cs
- ThemeDirectoryCompiler.cs
- GlobalizationAssembly.cs
- ModelItemDictionary.cs
- ChannelEndpointElementCollection.cs
- SamlSecurityTokenAuthenticator.cs
- HtmlHistory.cs
- CalloutQueueItem.cs
- SmtpCommands.cs
- EventPrivateKey.cs
- HtmlUtf8RawTextWriter.cs
- GridPatternIdentifiers.cs
- ExceptionUtility.cs
- CollectionViewGroupRoot.cs
- CodeDefaultValueExpression.cs
- XmlReflectionImporter.cs
- HttpListenerRequestUriBuilder.cs
- ToolBarPanel.cs
- BamlResourceSerializer.cs
- ViewSimplifier.cs
- CodeAccessPermission.cs
- IteratorFilter.cs
- BrushMappingModeValidation.cs
- ValueTable.cs
- SafeEventHandle.cs
- HtmlFormWrapper.cs
- Switch.cs
- ShaderEffect.cs
- ConfigurationManagerInternalFactory.cs
- SortableBindingList.cs
- ProfileSettingsCollection.cs
- TdsParameterSetter.cs
- ElapsedEventArgs.cs
- DesignBinding.cs
- ManagedWndProcTracker.cs