Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ImageMetadata.cs
- FlowPosition.cs
- MimeTypeMapper.cs
- ContextBase.cs
- DataMember.cs
- TreeNodeStyleCollection.cs
- EncryptedKeyHashIdentifierClause.cs
- TraceContext.cs
- ValueTypeFixupInfo.cs
- PlatformNotSupportedException.cs
- ResponseBodyWriter.cs
- MenuItem.cs
- XmlSchemaComplexContent.cs
- CommonProperties.cs
- _TransmitFileOverlappedAsyncResult.cs
- SemaphoreFullException.cs
- BufferedReadStream.cs
- ConfigXmlCDataSection.cs
- LocalBuilder.cs
- FormattedText.cs
- MediaTimeline.cs
- ProfilePropertySettingsCollection.cs
- LinqToSqlWrapper.cs
- ProxyManager.cs
- XmlElementAttributes.cs
- CaseInsensitiveComparer.cs
- GeometryHitTestParameters.cs
- IItemProperties.cs
- XmlNamespaceDeclarationsAttribute.cs
- StreamResourceInfo.cs
- DesignerView.Commands.cs
- GenerateHelper.cs
- InternalMappingException.cs
- InputScope.cs
- TreeWalker.cs
- PropertySourceInfo.cs
- TreeNodeCollectionEditor.cs
- ProfileModule.cs
- RectValueSerializer.cs
- SymLanguageType.cs
- Int64AnimationBase.cs
- FixedSOMPageConstructor.cs
- AsmxEndpointPickerExtension.cs
- DoubleAnimation.cs
- ProtocolElement.cs
- LineGeometry.cs
- EntitySqlException.cs
- StateChangeEvent.cs
- TemplateAction.cs
- EntityViewContainer.cs
- Transform3DCollection.cs
- SspiSecurityTokenProvider.cs
- EventWaitHandleSecurity.cs
- OrderedHashRepartitionEnumerator.cs
- Command.cs
- DependencyPropertyHelper.cs
- GlyphingCache.cs
- WebPartMenuStyle.cs
- HttpProxyTransportBindingElement.cs
- TextCompositionManager.cs
- ToolStripControlHost.cs
- XmlSchemaComplexContent.cs
- XmlUTF8TextWriter.cs
- DataGridCell.cs
- EditorZone.cs
- Line.cs
- LeftCellWrapper.cs
- SettingsProperty.cs
- XD.cs
- DesignerView.xaml.cs
- RadioButtonPopupAdapter.cs
- Attributes.cs
- _NetRes.cs
- DependentList.cs
- FormViewUpdateEventArgs.cs
- RelatedCurrencyManager.cs
- XmlDocumentSchema.cs
- GiveFeedbackEvent.cs
- CachedFontFamily.cs
- EFDataModelProvider.cs
- _RegBlobWebProxyDataBuilder.cs
- HttpCacheParams.cs
- BinarySerializer.cs
- TransformCollection.cs
- PropertyGridEditorPart.cs
- ItemsChangedEventArgs.cs
- RowCache.cs
- HostProtectionException.cs
- CommonProperties.cs
- CryptoKeySecurity.cs
- XmlRawWriter.cs
- MiniLockedBorderGlyph.cs
- NamespaceDecl.cs
- XmlSchemaSequence.cs
- CommonProperties.cs
- CheckoutException.cs
- Transform3D.cs
- SchemaImporter.cs
- CollectionBuilder.cs
- TextTabProperties.cs