Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewDataErrorEventArgs.cs / 1305376 / 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
- EnumerableRowCollection.cs
- MsmqSecureHashAlgorithm.cs
- SiteMapNodeCollection.cs
- RenderOptions.cs
- FocusWithinProperty.cs
- GridViewColumnHeaderAutomationPeer.cs
- AccessText.cs
- SQLCharsStorage.cs
- TableLayoutCellPaintEventArgs.cs
- OuterGlowBitmapEffect.cs
- Msmq4SubqueuePoisonHandler.cs
- ServiceManager.cs
- MouseBinding.cs
- RegexWorker.cs
- DataMemberConverter.cs
- PropertyRecord.cs
- EncryptedPackageFilter.cs
- XslAst.cs
- FileSystemInfo.cs
- Maps.cs
- OlePropertyStructs.cs
- ValidateNames.cs
- WebPartVerbCollection.cs
- RequestResizeEvent.cs
- IndicShape.cs
- ErrorFormatter.cs
- MorphHelper.cs
- SimpleFieldTemplateUserControl.cs
- SyndicationElementExtensionCollection.cs
- AutomationPeer.cs
- DataGridColumnHeadersPresenter.cs
- FlowNode.cs
- ManipulationDelta.cs
- FixedSOMPageElement.cs
- Util.cs
- PropertyGeneratedEventArgs.cs
- Convert.cs
- XamlGridLengthSerializer.cs
- PrePostDescendentsWalker.cs
- MediaSystem.cs
- PersonalizableAttribute.cs
- ToggleButtonAutomationPeer.cs
- GeometryModel3D.cs
- CmsUtils.cs
- PathSegment.cs
- EntityProxyFactory.cs
- NavigationWindowAutomationPeer.cs
- GridViewDeletedEventArgs.cs
- Rect3DValueSerializer.cs
- Rotation3D.cs
- SapiRecoInterop.cs
- BamlRecords.cs
- DataGridViewCellStateChangedEventArgs.cs
- RangeBaseAutomationPeer.cs
- DataExpression.cs
- SettingsPropertyNotFoundException.cs
- HtmlTitle.cs
- ConfigurationElementProperty.cs
- PropertyDescriptorComparer.cs
- TypeValidationEventArgs.cs
- DataGridView.cs
- MouseDevice.cs
- AspNetHostingPermission.cs
- BitmapSizeOptions.cs
- ExpressionPrefixAttribute.cs
- VScrollBar.cs
- DataBindingHandlerAttribute.cs
- ErrorStyle.cs
- ZeroOpNode.cs
- LedgerEntry.cs
- CustomValidator.cs
- ReturnType.cs
- MultipleViewProviderWrapper.cs
- MultiSelectRootGridEntry.cs
- HtmlInputFile.cs
- XmlSchemaSimpleContentRestriction.cs
- VariableQuery.cs
- LocatorPartList.cs
- SelectionProviderWrapper.cs
- ItemContainerGenerator.cs
- PageSettings.cs
- XamlContextStack.cs
- DebugHandleTracker.cs
- FormViewUpdatedEventArgs.cs
- LowerCaseStringConverter.cs
- DataGridCommandEventArgs.cs
- SingleAnimation.cs
- XmlNavigatorStack.cs
- processwaithandle.cs
- HttpHandlersSection.cs
- DesignerTransactionCloseEvent.cs
- Automation.cs
- ImageBrush.cs
- PermissionListSet.cs
- DSACryptoServiceProvider.cs
- PaperSource.cs
- GrowingArray.cs
- Psha1DerivedKeyGenerator.cs
- StandardToolWindows.cs
- AttributeQuery.cs