Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewCellEventArgs.cs / 1 / DataGridViewCellEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Windows.Forms
{
using System;
using System.Diagnostics;
///
public class DataGridViewCellEventArgs : EventArgs
{
private int columnIndex;
private int rowIndex;
internal DataGridViewCellEventArgs(DataGridViewCell dataGridViewCell) : this(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex)
{
}
///
public DataGridViewCellEventArgs(int columnIndex, int rowIndex)
{
if (columnIndex < -1)
{
throw new ArgumentOutOfRangeException("columnIndex");
}
if (rowIndex < -1)
{
throw new ArgumentOutOfRangeException("rowIndex");
}
this.columnIndex = columnIndex;
this.rowIndex = rowIndex;
}
///
public int ColumnIndex
{
get
{
return this.columnIndex;
}
}
///
public int RowIndex
{
get
{
return this.rowIndex;
}
}
}
}
// 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;
///
public class DataGridViewCellEventArgs : EventArgs
{
private int columnIndex;
private int rowIndex;
internal DataGridViewCellEventArgs(DataGridViewCell dataGridViewCell) : this(dataGridViewCell.ColumnIndex, dataGridViewCell.RowIndex)
{
}
///
public DataGridViewCellEventArgs(int columnIndex, int rowIndex)
{
if (columnIndex < -1)
{
throw new ArgumentOutOfRangeException("columnIndex");
}
if (rowIndex < -1)
{
throw new ArgumentOutOfRangeException("rowIndex");
}
this.columnIndex = columnIndex;
this.rowIndex = rowIndex;
}
///
public int ColumnIndex
{
get
{
return this.columnIndex;
}
}
///
public int RowIndex
{
get
{
return this.rowIndex;
}
}
}
}
// 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
- DataGridRowClipboardEventArgs.cs
- TemplateGroupCollection.cs
- MetadataSet.cs
- TemplateInstanceAttribute.cs
- HierarchicalDataSourceIDConverter.cs
- AuthenticationService.cs
- ObjectPersistData.cs
- Shape.cs
- XPathNavigator.cs
- MdbDataFileEditor.cs
- OdbcPermission.cs
- MediaContextNotificationWindow.cs
- XmlMembersMapping.cs
- DeviceContext.cs
- HierarchicalDataTemplate.cs
- Header.cs
- XPathBinder.cs
- XmlSchemaObjectTable.cs
- SetState.cs
- Vector3DCollection.cs
- ProcessInfo.cs
- ImageMapEventArgs.cs
- SourceFilter.cs
- Registry.cs
- XmlSchemaObject.cs
- EntitySetBaseCollection.cs
- RegularExpressionValidator.cs
- XamlSerializerUtil.cs
- ActivityCodeDomSerializationManager.cs
- MemberInfoSerializationHolder.cs
- BinaryObjectInfo.cs
- LinkDesigner.cs
- PartialCachingAttribute.cs
- StrokeNodeOperations.cs
- nulltextcontainer.cs
- InstanceData.cs
- _ProxyRegBlob.cs
- ListBindingConverter.cs
- ThreadExceptionEvent.cs
- SiteMapDesignerDataSourceView.cs
- DataObjectCopyingEventArgs.cs
- LogExtentCollection.cs
- WorkflowMessageEventArgs.cs
- UIElementIsland.cs
- ResourceDictionary.cs
- BuilderPropertyEntry.cs
- GroupDescription.cs
- ConfigurationElementProperty.cs
- CngAlgorithmGroup.cs
- ServiceElementCollection.cs
- GcSettings.cs
- DivideByZeroException.cs
- TextViewSelectionProcessor.cs
- WebPartCancelEventArgs.cs
- FrameworkElementFactoryMarkupObject.cs
- Compiler.cs
- WebPartAddingEventArgs.cs
- ExpressionConverter.cs
- OptimizedTemplateContentHelper.cs
- WmpBitmapDecoder.cs
- DurableEnlistmentState.cs
- ImageFormat.cs
- UntypedNullExpression.cs
- TrackingMemoryStreamFactory.cs
- TimelineCollection.cs
- Geometry.cs
- UriScheme.cs
- ElementsClipboardData.cs
- DependencySource.cs
- securitycriticaldata.cs
- DataBoundControl.cs
- QilUnary.cs
- PipelineModuleStepContainer.cs
- KeyManager.cs
- ClientCultureInfo.cs
- SafeLibraryHandle.cs
- ObjectReferenceStack.cs
- LinqDataSourceContextData.cs
- GPPOINTF.cs
- Html32TextWriter.cs
- CompilationSection.cs
- DBAsyncResult.cs
- DataGridPagerStyle.cs
- NetTcpSectionData.cs
- LayoutTable.cs
- FreeIndexList.cs
- ThicknessAnimationUsingKeyFrames.cs
- XmlSchemaImport.cs
- ConsoleTraceListener.cs
- HttpCookieCollection.cs
- DynamicControl.cs
- ColorKeyFrameCollection.cs
- RelationalExpressions.cs
- RegionInfo.cs
- AsnEncodedData.cs
- RelationshipManager.cs
- DiffuseMaterial.cs
- ObjectContextServiceProvider.cs
- NamedPipeHostedTransportConfiguration.cs
- CheckBox.cs