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
- EllipseGeometry.cs
- TypeDelegator.cs
- UnmanagedMemoryStream.cs
- ApplicationActivator.cs
- XmlSerializationWriter.cs
- TransportSecurityProtocol.cs
- ProcessProtocolHandler.cs
- MailAddressCollection.cs
- StaticTextPointer.cs
- StylusOverProperty.cs
- SchemaTypeEmitter.cs
- ClientUtils.cs
- CounterSampleCalculator.cs
- CookieProtection.cs
- MethodBuilderInstantiation.cs
- PageParserFilter.cs
- MimePart.cs
- AncestorChangedEventArgs.cs
- ExternalFile.cs
- AssemblyCacheEntry.cs
- UIElementCollection.cs
- EnumDataContract.cs
- DataPagerFieldItem.cs
- TreeNode.cs
- ProcessModuleCollection.cs
- URLIdentityPermission.cs
- RelationshipManager.cs
- WebPartsPersonalizationAuthorization.cs
- FileUpload.cs
- coordinatorscratchpad.cs
- OrderedDictionaryStateHelper.cs
- EdmValidator.cs
- BehaviorEditorPart.cs
- WebEncodingValidatorAttribute.cs
- SpellerStatusTable.cs
- InfoCardSymmetricAlgorithm.cs
- Guid.cs
- ImageSourceValueSerializer.cs
- WebReferencesBuildProvider.cs
- CompilerTypeWithParams.cs
- SourceFilter.cs
- APCustomTypeDescriptor.cs
- AnnotationComponentChooser.cs
- WinFormsComponentEditor.cs
- ScriptControl.cs
- AsymmetricSignatureFormatter.cs
- _UncName.cs
- EntityContainer.cs
- _RequestLifetimeSetter.cs
- RuntimeConfig.cs
- ConfigurationSectionGroup.cs
- SizeConverter.cs
- EventMappingSettings.cs
- BitHelper.cs
- MethodRental.cs
- DataSourceHelper.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- RemoteWebConfigurationHostStream.cs
- RTLAwareMessageBox.cs
- LinqTreeNodeEvaluator.cs
- WebBaseEventKeyComparer.cs
- Metadata.cs
- OdbcFactory.cs
- XMLDiffLoader.cs
- PriorityItem.cs
- LineBreakRecord.cs
- SystemIPv6InterfaceProperties.cs
- RegexCaptureCollection.cs
- XmlSchemaNotation.cs
- SystemParameters.cs
- AnonymousIdentificationModule.cs
- EmptyStringExpandableObjectConverter.cs
- VarInfo.cs
- DbConnectionPoolGroupProviderInfo.cs
- CompilerTypeWithParams.cs
- GenericXmlSecurityTokenAuthenticator.cs
- RangeValuePattern.cs
- TextAdaptor.cs
- BrushMappingModeValidation.cs
- Color.cs
- RecordBuilder.cs
- WindowsPen.cs
- Focus.cs
- SmtpCommands.cs
- RegisteredScript.cs
- storepermissionattribute.cs
- OleDbConnectionInternal.cs
- MenuAutomationPeer.cs
- ValidatingReaderNodeData.cs
- ConsoleKeyInfo.cs
- LoginName.cs
- SqlGatherProducedAliases.cs
- GridViewHeaderRowPresenter.cs
- DynamicAttribute.cs
- QuotedPrintableStream.cs
- DesignerVerbCollection.cs
- Number.cs
- LineServices.cs
- LinqDataSource.cs
- ListViewGroupConverter.cs