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
- Floater.cs
- OleDragDropHandler.cs
- DBAsyncResult.cs
- BitmapData.cs
- DbInsertCommandTree.cs
- EntityDataSourceReferenceGroup.cs
- TreeNodeBinding.cs
- PermissionSetEnumerator.cs
- Rotation3DKeyFrameCollection.cs
- ManagementObjectSearcher.cs
- ColumnCollection.cs
- SymmetricKeyWrap.cs
- AsymmetricSignatureDeformatter.cs
- HandleExceptionArgs.cs
- GacUtil.cs
- QilStrConcatenator.cs
- DateTimePicker.cs
- ConfigurationProviderException.cs
- StartFileNameEditor.cs
- Stacktrace.cs
- ListViewUpdatedEventArgs.cs
- ConditionalAttribute.cs
- HtmlInputHidden.cs
- AnyAllSearchOperator.cs
- BoundingRectTracker.cs
- Calendar.cs
- HierarchicalDataTemplate.cs
- ListItemsPage.cs
- TableRow.cs
- RegexWorker.cs
- LinqDataSourceInsertEventArgs.cs
- MdbDataFileEditor.cs
- AssociationSetEnd.cs
- DebuggerAttributes.cs
- Label.cs
- ResourceProperty.cs
- SmiRequestExecutor.cs
- LostFocusEventManager.cs
- PersianCalendar.cs
- NameObjectCollectionBase.cs
- DbConnectionFactory.cs
- EmbeddedMailObjectsCollection.cs
- PieceNameHelper.cs
- AssociationType.cs
- BooleanConverter.cs
- Paragraph.cs
- ErrorFormatter.cs
- StylusPointProperties.cs
- DataRelationCollection.cs
- FormViewCommandEventArgs.cs
- ArraySet.cs
- GridViewColumnHeaderAutomationPeer.cs
- SourceInterpreter.cs
- SymDocumentType.cs
- BuildProvider.cs
- TrustManagerMoreInformation.cs
- UpdateException.cs
- UriTemplateTrieLocation.cs
- ScriptReferenceEventArgs.cs
- KeyboardEventArgs.cs
- Logging.cs
- WindowsListViewScroll.cs
- TextEmbeddedObject.cs
- CheckedPointers.cs
- OptimizedTemplateContent.cs
- SystemGatewayIPAddressInformation.cs
- GenericIdentity.cs
- SortedSet.cs
- ColorConvertedBitmap.cs
- ValidatorCompatibilityHelper.cs
- ServiceDurableInstance.cs
- ClosableStream.cs
- validationstate.cs
- SqlCachedBuffer.cs
- TextServicesCompartmentEventSink.cs
- VSWCFServiceContractGenerator.cs
- _FtpDataStream.cs
- DisposableCollectionWrapper.cs
- EnumDataContract.cs
- RuntimeResourceSet.cs
- ToolStripContextMenu.cs
- ChannelHandler.cs
- RichListBox.cs
- FormViewDeleteEventArgs.cs
- Gdiplus.cs
- WebZone.cs
- MetadataAssemblyHelper.cs
- InputBuffer.cs
- CompilationSection.cs
- SharedPerformanceCounter.cs
- IssuanceLicense.cs
- StandardToolWindows.cs
- MailAddress.cs
- SQLGuid.cs
- LowerCaseStringConverter.cs
- DataObject.cs
- WindowsAuthenticationEventArgs.cs
- StringToken.cs
- InputEventArgs.cs
- MobileControlBuilder.cs