Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewCellValueEventArgs.cs / 1305376 / 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.
//
//-----------------------------------------------------------------------------
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextMetrics.cs
- HotSpot.cs
- DesignTimeTemplateParser.cs
- storagemappingitemcollection.viewdictionary.cs
- DataServiceRequest.cs
- DataGridLinkButton.cs
- ServiceOperation.cs
- DBDataPermission.cs
- IRCollection.cs
- LocalValueEnumerator.cs
- StorageBasedPackageProperties.cs
- TypeDependencyAttribute.cs
- TimelineCollection.cs
- QuotedPrintableStream.cs
- EmptyQuery.cs
- KnownIds.cs
- LocatorPartList.cs
- ToolBar.cs
- PointHitTestResult.cs
- _NTAuthentication.cs
- XamlContextStack.cs
- PreservationFileReader.cs
- FixedTextContainer.cs
- StateInitializationDesigner.cs
- XmlQueryCardinality.cs
- ArgumentsParser.cs
- CatalogZoneBase.cs
- Stroke.cs
- RtfControls.cs
- ResXResourceReader.cs
- ContentPosition.cs
- BufferedGraphics.cs
- TransactionalPackage.cs
- NullableBoolConverter.cs
- MembershipAdapter.cs
- ApplicationInfo.cs
- CmsInterop.cs
- ResourceAssociationSet.cs
- ParserContext.cs
- BaseEntityWrapper.cs
- DataShape.cs
- TextElementCollection.cs
- ChangeConflicts.cs
- DataServiceBuildProvider.cs
- WebPartDescription.cs
- NullExtension.cs
- DrawingVisual.cs
- XmlCompatibilityReader.cs
- ListBoxChrome.cs
- ListViewCommandEventArgs.cs
- Package.cs
- WebBrowsableAttribute.cs
- _BufferOffsetSize.cs
- QueryStatement.cs
- FolderNameEditor.cs
- SoapCodeExporter.cs
- ConfigurationProperty.cs
- SecurityTokenProvider.cs
- LocatorPart.cs
- DoubleLink.cs
- CustomPopupPlacement.cs
- EntityCommand.cs
- Effect.cs
- SerTrace.cs
- DrawingVisual.cs
- UpdateExpressionVisitor.cs
- BoundingRectTracker.cs
- FontSizeConverter.cs
- EntitySetRetriever.cs
- DynamicDiscoveryDocument.cs
- DecimalAnimationBase.cs
- EntityType.cs
- DocumentSequence.cs
- NativeMethodsOther.cs
- OdbcTransaction.cs
- WebDescriptionAttribute.cs
- RelationshipNavigation.cs
- UnmanagedMemoryStream.cs
- StateInitialization.cs
- MultipleViewPattern.cs
- ValidatedControlConverter.cs
- AtomEntry.cs
- HandledMouseEvent.cs
- DispatcherSynchronizationContext.cs
- Baml2006KeyRecord.cs
- MetadataCache.cs
- WebPartVerb.cs
- DataDesignUtil.cs
- ClientConfigurationSystem.cs
- Int32Collection.cs
- XmlSerializerFactory.cs
- DateTimeFormatInfoScanner.cs
- DataGridCaption.cs
- WebBrowserProgressChangedEventHandler.cs
- PolyBezierSegmentFigureLogic.cs
- ConfigXmlAttribute.cs
- VirtualPathUtility.cs
- StoreAnnotationsMap.cs
- ReturnEventArgs.cs
- OuterGlowBitmapEffect.cs