Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewDataErrorEventArgs.cs / 1 / DataGridViewDataErrorEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System; using System.Drawing; using System.Diagnostics; using System.ComponentModel; ///public class DataGridViewDataErrorEventArgs : DataGridViewCellCancelEventArgs { private Exception exception; private bool throwException; private DataGridViewDataErrorContexts context; /// public DataGridViewDataErrorEventArgs(Exception exception, int columnIndex, int rowIndex, DataGridViewDataErrorContexts context) : base(columnIndex, rowIndex) { Debug.Assert(rowIndex > -1); this.exception = exception; this.context = context; } /// public DataGridViewDataErrorContexts Context { get { return this.context; } } /// public Exception Exception { get { return this.exception; } } /// public bool ThrowException { get { return this.throwException; } set { if (value && this.exception == null) { throw new ArgumentException(SR.GetString(SR.DataGridView_CannotThrowNullException)); } this.throwException = 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.Drawing; using System.Diagnostics; using System.ComponentModel; ///public class DataGridViewDataErrorEventArgs : DataGridViewCellCancelEventArgs { private Exception exception; private bool throwException; private DataGridViewDataErrorContexts context; /// public DataGridViewDataErrorEventArgs(Exception exception, int columnIndex, int rowIndex, DataGridViewDataErrorContexts context) : base(columnIndex, rowIndex) { Debug.Assert(rowIndex > -1); this.exception = exception; this.context = context; } /// public DataGridViewDataErrorContexts Context { get { return this.context; } } /// public Exception Exception { get { return this.exception; } } /// public bool ThrowException { get { return this.throwException; } set { if (value && this.exception == null) { throw new ArgumentException(SR.GetString(SR.DataGridView_CannotThrowNullException)); } this.throwException = 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
- cookiecontainer.cs
- XmlSchemaComplexContent.cs
- IssuedTokenParametersElement.cs
- GZipStream.cs
- DataGridViewCellMouseEventArgs.cs
- DataColumnPropertyDescriptor.cs
- EmptyEnumerator.cs
- PenCursorManager.cs
- XmlRawWriter.cs
- SafeTimerHandle.cs
- EntryPointNotFoundException.cs
- HScrollProperties.cs
- ListView.cs
- InvokeDelegate.cs
- WebExceptionStatus.cs
- DocumentPaginator.cs
- XPathSelectionIterator.cs
- WebEvents.cs
- SignatureGenerator.cs
- DataGridLinkButton.cs
- LambdaCompiler.Address.cs
- XmlObjectSerializerReadContext.cs
- WindowInteropHelper.cs
- PresentationAppDomainManager.cs
- FrameSecurityDescriptor.cs
- WpfKnownType.cs
- EndPoint.cs
- CodeTypeParameter.cs
- ParseHttpDate.cs
- QfeChecker.cs
- CounterCreationData.cs
- HttpClientCertificate.cs
- StateMachineDesignerPaint.cs
- ProgressChangedEventArgs.cs
- BitStack.cs
- TableLayoutCellPaintEventArgs.cs
- DropShadowBitmapEffect.cs
- WindowsRichEdit.cs
- StringAttributeCollection.cs
- PersonalizableAttribute.cs
- XhtmlMobileTextWriter.cs
- Transform.cs
- DataSetSchema.cs
- PeerNameRecordCollection.cs
- ProcessHostConfigUtils.cs
- ProvidePropertyAttribute.cs
- ColumnWidthChangingEvent.cs
- FrameworkRichTextComposition.cs
- FileRegion.cs
- MulticastIPAddressInformationCollection.cs
- CharacterBuffer.cs
- DispatcherProcessingDisabled.cs
- CompressStream.cs
- ReferenceConverter.cs
- FlowDocumentScrollViewer.cs
- EncryptedData.cs
- SimpleLine.cs
- RadialGradientBrush.cs
- Solver.cs
- LineInfo.cs
- XmlLanguageConverter.cs
- IconHelper.cs
- NestedContainer.cs
- Merger.cs
- DrawingCollection.cs
- ByteStorage.cs
- TextEditorTyping.cs
- SqlWorkflowPersistenceService.cs
- ResetableIterator.cs
- MediaEntryAttribute.cs
- Fonts.cs
- XomlCompilerResults.cs
- OpenTypeMethods.cs
- LogRestartAreaEnumerator.cs
- ParallelTimeline.cs
- OSFeature.cs
- CompilerTypeWithParams.cs
- XmlTextWriter.cs
- DetailsViewInsertedEventArgs.cs
- TransformerTypeCollection.cs
- AdjustableArrowCap.cs
- CustomGrammar.cs
- embossbitmapeffect.cs
- ToolBarTray.cs
- XmlCharCheckingReader.cs
- Shape.cs
- MenuEventArgs.cs
- DataSvcMapFile.cs
- FontUnitConverter.cs
- GuidelineCollection.cs
- DoWorkEventArgs.cs
- DataRowExtensions.cs
- StringInfo.cs
- XmlDomTextWriter.cs
- coordinator.cs
- Preprocessor.cs
- PropertyChangeTracker.cs
- SystemWebCachingSectionGroup.cs
- OutputScopeManager.cs
- ConnectionProviderAttribute.cs