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
- ZipIOCentralDirectoryDigitalSignature.cs
- ContainerParaClient.cs
- QueryCacheEntry.cs
- ConditionalWeakTable.cs
- ThicknessKeyFrameCollection.cs
- PenContext.cs
- GlobalItem.cs
- BaseResourcesBuildProvider.cs
- AsyncPostBackTrigger.cs
- FileSystemEventArgs.cs
- SendingRequestEventArgs.cs
- BoundColumn.cs
- If.cs
- ClickablePoint.cs
- HttpPostClientProtocol.cs
- LowerCaseStringConverter.cs
- SqlClientMetaDataCollectionNames.cs
- InputMethod.cs
- UnsafeNativeMethods.cs
- CellLabel.cs
- CustomAttribute.cs
- HttpCachePolicyElement.cs
- SqlNode.cs
- HashMembershipCondition.cs
- DataGridBoolColumn.cs
- AttachedPropertyBrowsableAttribute.cs
- InvalidCastException.cs
- ScopelessEnumAttribute.cs
- Formatter.cs
- SystemMulticastIPAddressInformation.cs
- CultureInfoConverter.cs
- GeometryHitTestResult.cs
- RootNamespaceAttribute.cs
- SubMenuStyleCollectionEditor.cs
- Cursor.cs
- TraceContextEventArgs.cs
- FileDialog.cs
- CodeCompiler.cs
- HitTestWithPointDrawingContextWalker.cs
- FormsAuthenticationModule.cs
- FigureHelper.cs
- RepeatButton.cs
- SmtpSection.cs
- DataGridViewCellConverter.cs
- FrameworkElementAutomationPeer.cs
- DataSourceView.cs
- TypeKeyValue.cs
- MessageTraceRecord.cs
- DetailsViewDesigner.cs
- User.cs
- XmlCharType.cs
- CompositionAdorner.cs
- ColorBlend.cs
- RecordManager.cs
- InternalTypeHelper.cs
- XmlSchemaSimpleContentRestriction.cs
- KernelTypeValidation.cs
- LinkConverter.cs
- PromptEventArgs.cs
- Helpers.cs
- ConstantSlot.cs
- SqlDelegatedTransaction.cs
- DockPattern.cs
- GlyphShapingProperties.cs
- TaskFileService.cs
- SoapTypeAttribute.cs
- DocumentPageViewAutomationPeer.cs
- HeaderCollection.cs
- DataBoundControl.cs
- ThicknessConverter.cs
- NoClickablePointException.cs
- ProviderSettings.cs
- DoubleAnimationUsingPath.cs
- Rectangle.cs
- ScriptingRoleServiceSection.cs
- MimeParameters.cs
- Wildcard.cs
- ChildrenQuery.cs
- TimestampInformation.cs
- XmlText.cs
- NTAccount.cs
- Repeater.cs
- ProcessThreadDesigner.cs
- ConfigXmlElement.cs
- AsymmetricKeyExchangeFormatter.cs
- RSAOAEPKeyExchangeFormatter.cs
- SystemTcpStatistics.cs
- AppearanceEditorPart.cs
- CodeAttributeDeclaration.cs
- SiteMapNodeCollection.cs
- ListControlStringCollectionEditor.cs
- SafeBitVector32.cs
- SystemColors.cs
- OdbcEnvironment.cs
- WebPartEditorCancelVerb.cs
- ChannelManager.cs
- BufferCache.cs
- CriticalExceptions.cs
- EntityCommand.cs
- BaseAppDomainProtocolHandler.cs