Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- IListConverters.cs
- TextBoxView.cs
- DirectoryObjectSecurity.cs
- EventEntry.cs
- SafeProcessHandle.cs
- TiffBitmapEncoder.cs
- HostExecutionContextManager.cs
- TransformPattern.cs
- Attributes.cs
- SoapObjectWriter.cs
- RecommendedAsConfigurableAttribute.cs
- ImageMetadata.cs
- DataGridPageChangedEventArgs.cs
- HttpRequestCacheValidator.cs
- ThreadSafeList.cs
- GAC.cs
- TextBoxRenderer.cs
- DeclaredTypeElement.cs
- InputScopeConverter.cs
- CreateUserErrorEventArgs.cs
- WorkflowElementDialog.cs
- SettingsProviderCollection.cs
- CqlParserHelpers.cs
- SystemGatewayIPAddressInformation.cs
- OperationAbortedException.cs
- coordinatorfactory.cs
- InputBuffer.cs
- OleStrCAMarshaler.cs
- StreamReader.cs
- PartialCachingAttribute.cs
- GiveFeedbackEvent.cs
- SmiGettersStream.cs
- XPathException.cs
- SafeMILHandle.cs
- ComboBoxRenderer.cs
- XmlChoiceIdentifierAttribute.cs
- RegexCapture.cs
- OverrideMode.cs
- Timer.cs
- ResourcesChangeInfo.cs
- WorkflowDesignerColors.cs
- DoubleLinkList.cs
- CounterCreationDataConverter.cs
- XsdCachingReader.cs
- XPathExpr.cs
- PenCursorManager.cs
- WriterOutput.cs
- sqlinternaltransaction.cs
- SHA1CryptoServiceProvider.cs
- FontFamily.cs
- FixedPage.cs
- ConfigurationFileMap.cs
- SynchronizedDispatch.cs
- FileDetails.cs
- BasicCellRelation.cs
- ParseElementCollection.cs
- SetterBase.cs
- ObjectAnimationUsingKeyFrames.cs
- ImageBrush.cs
- InkCollectionBehavior.cs
- DataListGeneralPage.cs
- DrawingAttributeSerializer.cs
- MenuItem.cs
- XmlILIndex.cs
- EFAssociationProvider.cs
- SingleAnimation.cs
- SecurityToken.cs
- PolicyManager.cs
- ListParaClient.cs
- CompositeFontParser.cs
- XmlEventCache.cs
- Vector.cs
- ColorTranslator.cs
- VirtualizingPanel.cs
- EventRoute.cs
- Formatter.cs
- DataGridViewCellConverter.cs
- ReachSerializerAsync.cs
- NameTable.cs
- AlphabeticalEnumConverter.cs
- QuaternionAnimation.cs
- LineGeometry.cs
- SessionStateUtil.cs
- VerificationAttribute.cs
- ActivityValidator.cs
- RayMeshGeometry3DHitTestResult.cs
- OracleParameterCollection.cs
- MdiWindowListStrip.cs
- Membership.cs
- WebSysDescriptionAttribute.cs
- ResponseBodyWriter.cs
- webclient.cs
- PenThread.cs
- RightsManagementEncryptionTransform.cs
- SHA256CryptoServiceProvider.cs
- RSAOAEPKeyExchangeDeformatter.cs
- OdbcConnection.cs
- StackBuilderSink.cs
- HtmlForm.cs
- Double.cs