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
- StateDesigner.cs
- PropertyIDSet.cs
- DropShadowBitmapEffect.cs
- CodeVariableDeclarationStatement.cs
- InvokeGenerator.cs
- TdsParserHelperClasses.cs
- HashMembershipCondition.cs
- DataRecordObjectView.cs
- FilterEventArgs.cs
- FormView.cs
- XmlParserContext.cs
- metadatamappinghashervisitor.cs
- DataStreamFromComStream.cs
- __ConsoleStream.cs
- NonBatchDirectoryCompiler.cs
- EnumerableRowCollectionExtensions.cs
- MulticastOption.cs
- CategoryGridEntry.cs
- Baml2006ReaderFrame.cs
- ListViewGroupItemCollection.cs
- EntityDataSourceMemberPath.cs
- DirectoryInfo.cs
- MethodBody.cs
- ClientOperation.cs
- FunctionQuery.cs
- AttachInfo.cs
- CompensatableTransactionScopeActivity.cs
- StringDictionary.cs
- CodeDelegateCreateExpression.cs
- DataReceivedEventArgs.cs
- TextServicesCompartmentContext.cs
- CmsInterop.cs
- GroupBoxAutomationPeer.cs
- XPathAncestorQuery.cs
- WebPartTracker.cs
- VarRemapper.cs
- BindingContext.cs
- MsmqNonTransactedPoisonHandler.cs
- SimpleLine.cs
- MILUtilities.cs
- WindowHideOrCloseTracker.cs
- WsatServiceCertificate.cs
- TypeConvertions.cs
- ContentElement.cs
- Selection.cs
- ReversePositionQuery.cs
- Expr.cs
- PartialTrustVisibleAssembliesSection.cs
- VariantWrapper.cs
- SchemaObjectWriter.cs
- NumberFormatter.cs
- XmlNodeChangedEventManager.cs
- LifetimeMonitor.cs
- RawMouseInputReport.cs
- StylusButtonCollection.cs
- WindowsStartMenu.cs
- PreApplicationStartMethodAttribute.cs
- HtmlInputControl.cs
- _CommandStream.cs
- TextPointer.cs
- TransformGroup.cs
- DocumentOrderQuery.cs
- StringExpressionSet.cs
- MarkupExtensionParser.cs
- RtfFormatStack.cs
- RequestNavigateEventArgs.cs
- DBSchemaRow.cs
- LinkTarget.cs
- SymbolType.cs
- PassportAuthenticationEventArgs.cs
- ProviderConnectionPoint.cs
- SchemaTypeEmitter.cs
- AddInAttribute.cs
- LineServicesRun.cs
- TerminateDesigner.cs
- QilVisitor.cs
- ApplicationSecurityInfo.cs
- IdnElement.cs
- RecognitionEventArgs.cs
- BindingValueChangedEventArgs.cs
- CollectionConverter.cs
- AutoCompleteStringCollection.cs
- SoapSchemaMember.cs
- Enum.cs
- __Error.cs
- ArithmeticException.cs
- SystemResources.cs
- OracleException.cs
- CharEntityEncoderFallback.cs
- AutoCompleteStringCollection.cs
- ManagementException.cs
- AnonymousIdentificationSection.cs
- QueuePathEditor.cs
- XmlExpressionDumper.cs
- EncodingInfo.cs
- RNGCryptoServiceProvider.cs
- ColumnMap.cs
- SwitchLevelAttribute.cs
- DataGridView.cs
- CodeTypeDeclarationCollection.cs