Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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.
//
//-----------------------------------------------------------------------------
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
- TypeSemantics.cs
- ToolStripSeparator.cs
- TcpAppDomainProtocolHandler.cs
- Certificate.cs
- XamlWriterExtensions.cs
- StandardBindingElementCollection.cs
- DataGridItemAutomationPeer.cs
- NetNamedPipeSecurityMode.cs
- OdbcReferenceCollection.cs
- NonParentingControl.cs
- PartialList.cs
- Semaphore.cs
- ReadWriteSpinLock.cs
- FilterException.cs
- ArgumentOutOfRangeException.cs
- DataGridColumnReorderingEventArgs.cs
- ImportContext.cs
- DataServiceQueryOfT.cs
- Selection.cs
- WebZone.cs
- OperationCanceledException.cs
- ImmutableObjectAttribute.cs
- CompilationUnit.cs
- UInt16.cs
- PageSettings.cs
- FamilyCollection.cs
- Paragraph.cs
- UnmanagedHandle.cs
- ListViewInsertedEventArgs.cs
- ByteAnimation.cs
- HtmlInputButton.cs
- SymbolUsageManager.cs
- TemplateKeyConverter.cs
- BitmapEffectDrawingContextWalker.cs
- DropShadowEffect.cs
- RSAOAEPKeyExchangeDeformatter.cs
- MarkedHighlightComponent.cs
- _SingleItemRequestCache.cs
- DateTimeConverter2.cs
- SmiXetterAccessMap.cs
- DataGridColumnCollectionEditor.cs
- GrammarBuilderBase.cs
- EditorPartChrome.cs
- IisNotInstalledException.cs
- MsmqAppDomainProtocolHandler.cs
- JsonDataContract.cs
- Pair.cs
- CollectionViewGroup.cs
- UniformGrid.cs
- WpfWebRequestHelper.cs
- Parser.cs
- PartialTrustVisibleAssemblyCollection.cs
- ObjectStateManagerMetadata.cs
- OLEDB_Enum.cs
- HostExecutionContextManager.cs
- WindowsRichEditRange.cs
- TimeSpanMinutesConverter.cs
- ResourceAssociationSet.cs
- DocumentCollection.cs
- SafeHGlobalHandleCritical.cs
- InputLanguageManager.cs
- FontFamily.cs
- SlotInfo.cs
- VariableAction.cs
- TaiwanCalendar.cs
- MediaEntryAttribute.cs
- ObjectToken.cs
- FrameworkPropertyMetadata.cs
- PointAnimation.cs
- NonVisualControlAttribute.cs
- PublishLicense.cs
- DataPagerCommandEventArgs.cs
- HtmlControlPersistable.cs
- EntityModelBuildProvider.cs
- ADConnectionHelper.cs
- CustomErrorsSectionWrapper.cs
- HttpServerChannel.cs
- TableRowGroup.cs
- QuadraticBezierSegment.cs
- TextServicesCompartmentContext.cs
- InputQueueChannelAcceptor.cs
- DecoderNLS.cs
- COM2IDispatchConverter.cs
- SkinBuilder.cs
- _LocalDataStore.cs
- Canonicalizers.cs
- DataControlFieldCell.cs
- OdbcConnectionPoolProviderInfo.cs
- DataControlFieldCollection.cs
- GatewayIPAddressInformationCollection.cs
- StateRuntime.cs
- ConfigurationLocation.cs
- SimpleExpression.cs
- keycontainerpermission.cs
- IndexedGlyphRun.cs
- ComNativeDescriptor.cs
- Calendar.cs
- DataReceivedEventArgs.cs
- EntryIndex.cs
- CurrentTimeZone.cs