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
- DetailsViewPageEventArgs.cs
- NamespaceDisplay.xaml.cs
- DBNull.cs
- GridViewSortEventArgs.cs
- Point3DAnimationUsingKeyFrames.cs
- TypeDependencyAttribute.cs
- TextEmbeddedObject.cs
- SettingsSection.cs
- PersonalizationStateInfo.cs
- Model3D.cs
- SmiEventSink_Default.cs
- OdbcDataReader.cs
- LayoutTableCell.cs
- WebPartsPersonalization.cs
- SettingsPropertyCollection.cs
- DBSchemaRow.cs
- diagnosticsswitches.cs
- CompensatableTransactionScopeActivityDesigner.cs
- HtmlString.cs
- DefaultValueAttribute.cs
- SqlCacheDependencySection.cs
- HttpsTransportElement.cs
- PersonalizationStateInfoCollection.cs
- SessionSwitchEventArgs.cs
- StringAnimationBase.cs
- FileAuthorizationModule.cs
- GridLength.cs
- XmlDigitalSignatureProcessor.cs
- EmbeddedMailObjectsCollection.cs
- HttpCapabilitiesSectionHandler.cs
- TypeDefinition.cs
- ToolStripManager.cs
- PagesSection.cs
- SessionParameter.cs
- EnvelopedSignatureTransform.cs
- SignatureDescription.cs
- SoapMessage.cs
- ObsoleteAttribute.cs
- NoResizeHandleGlyph.cs
- FormsAuthenticationConfiguration.cs
- Baml6Assembly.cs
- SerializableAuthorizationContext.cs
- RadioButton.cs
- RSAOAEPKeyExchangeDeformatter.cs
- TokenBasedSet.cs
- ExtensionFile.cs
- ControlType.cs
- ReferencedType.cs
- ServiceNotStartedException.cs
- LZCodec.cs
- AesManaged.cs
- TcpSocketManager.cs
- ChtmlTextWriter.cs
- FieldMetadata.cs
- ImageKeyConverter.cs
- MergePropertyDescriptor.cs
- MemberJoinTreeNode.cs
- TransformValueSerializer.cs
- Point3DCollectionConverter.cs
- ControlTemplate.cs
- HierarchicalDataBoundControl.cs
- DynamicResourceExtension.cs
- StickyNoteHelper.cs
- Int16AnimationBase.cs
- codemethodreferenceexpression.cs
- ValidationRuleCollection.cs
- EventLogSession.cs
- VectorAnimationUsingKeyFrames.cs
- UInt64Storage.cs
- ObsoleteAttribute.cs
- CacheRequest.cs
- FixedTextBuilder.cs
- ResourcesBuildProvider.cs
- MouseBinding.cs
- BuildProviderAppliesToAttribute.cs
- UnitControl.cs
- ResourceReader.cs
- CompressStream.cs
- RelationshipWrapper.cs
- TabletDeviceInfo.cs
- sqlpipe.cs
- VisualStyleInformation.cs
- LeaseManager.cs
- EnumerableRowCollectionExtensions.cs
- VectorAnimation.cs
- Win32SafeHandles.cs
- DetailsViewDesigner.cs
- SqlPersonalizationProvider.cs
- SchemaExporter.cs
- HijriCalendar.cs
- HighContrastHelper.cs
- ParserHooks.cs
- PropertyGridView.cs
- ScrollChrome.cs
- webproxy.cs
- WebEncodingValidatorAttribute.cs
- WebPartRestoreVerb.cs
- StringUtil.cs
- ConfigXmlCDataSection.cs
- ObjectStorage.cs