Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewCellValueEventArgs.cs / 1 / DataGridViewCellValueEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Windows.Forms
{
using System;
using System.Diagnostics;
///
public class DataGridViewCellValueEventArgs : EventArgs
{
private int rowIndex, columnIndex;
private object val;
internal DataGridViewCellValueEventArgs()
{
this.columnIndex = this.rowIndex = -1;
}
///
public DataGridViewCellValueEventArgs(int columnIndex, int rowIndex)
{
if (columnIndex < 0)
{
throw new ArgumentOutOfRangeException("columnIndex");
}
if (rowIndex < 0)
{
throw new ArgumentOutOfRangeException("rowIndex");
}
this.rowIndex = rowIndex;
this.columnIndex = columnIndex;
}
///
public int ColumnIndex
{
get
{
return this.columnIndex;
}
}
///
public int RowIndex
{
get
{
return this.rowIndex;
}
}
///
public object Value
{
get
{
return this.val;
}
set
{
this.val = value;
}
}
internal void SetProperties(int columnIndex, int rowIndex, object value)
{
Debug.Assert(columnIndex >= -1);
Debug.Assert(rowIndex >= -1);
this.columnIndex = columnIndex;
this.rowIndex = rowIndex;
this.val = value;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BuilderPropertyEntry.cs
- AndAlso.cs
- FunctionNode.cs
- HttpListenerPrefixCollection.cs
- AutomationProperties.cs
- ScriptingProfileServiceSection.cs
- ColorAnimationUsingKeyFrames.cs
- SelectorAutomationPeer.cs
- InlineCollection.cs
- LOSFormatter.cs
- HostProtectionException.cs
- StringValueConverter.cs
- EntityDataSourceColumn.cs
- StrokeNodeEnumerator.cs
- StatusBar.cs
- TextTrailingCharacterEllipsis.cs
- filewebrequest.cs
- XmlSchemaSet.cs
- XmlSchemaSimpleContent.cs
- ResourceContainerWrapper.cs
- ContextMenuStrip.cs
- DynamicILGenerator.cs
- MsmqHostedTransportManager.cs
- PeerValidationBehavior.cs
- NameTable.cs
- Label.cs
- ApplicationSettingsBase.cs
- EventManager.cs
- CustomCategoryAttribute.cs
- DataTableCollection.cs
- MediaContext.cs
- XPathArrayIterator.cs
- CounterCreationDataConverter.cs
- DoubleLink.cs
- XPathSingletonIterator.cs
- ControlPropertyNameConverter.cs
- DataBinding.cs
- DesignerVerbCollection.cs
- Transform3D.cs
- RegexWriter.cs
- UIAgentCrashedException.cs
- StructuredType.cs
- XmlSchemaInfo.cs
- HttpHeaderCollection.cs
- ProfileInfo.cs
- HttpPostServerProtocol.cs
- Matrix.cs
- XmlSchemaProviderAttribute.cs
- FormsAuthentication.cs
- TemplateEditingVerb.cs
- NegotiationTokenAuthenticator.cs
- PerfCounters.cs
- ReadOnlyDictionary.cs
- Lasso.cs
- XmlHelper.cs
- CharEnumerator.cs
- PieceDirectory.cs
- AbstractSvcMapFileLoader.cs
- BindableTemplateBuilder.cs
- CompilationSection.cs
- KeyValueSerializer.cs
- CodeTypeConstructor.cs
- Pen.cs
- TimeSpanStorage.cs
- RIPEMD160Managed.cs
- PaintEvent.cs
- TabControlAutomationPeer.cs
- RankException.cs
- OutputCacheModule.cs
- XmlSchemaAny.cs
- NetworkCredential.cs
- DataBoundControlAdapter.cs
- FontWeight.cs
- InternalDispatchObject.cs
- FilteredReadOnlyMetadataCollection.cs
- HierarchicalDataSourceControl.cs
- PropertyEntry.cs
- ResourceContainer.cs
- Common.cs
- CellRelation.cs
- Hashtable.cs
- SecurityElement.cs
- TabPage.cs
- SecureStringHasher.cs
- Panel.cs
- MissingSatelliteAssemblyException.cs
- AttachedAnnotationChangedEventArgs.cs
- MouseDevice.cs
- Buffer.cs
- WebHttpBindingElement.cs
- HwndMouseInputProvider.cs
- CorrelationToken.cs
- DataServiceQueryProvider.cs
- ToolStripSettings.cs
- HTMLTextWriter.cs
- MethodBuilder.cs
- AccessViolationException.cs
- Rect3D.cs
- DataGridPageChangedEventArgs.cs
- Crypto.cs