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
- LogLogRecord.cs
- MemoryRecordBuffer.cs
- Gdiplus.cs
- SplineKeyFrames.cs
- ExecutionEngineException.cs
- MetadataExchangeBindings.cs
- FilterElement.cs
- DataRecordInternal.cs
- DependencyPropertyDescriptor.cs
- Positioning.cs
- HTMLTagNameToTypeMapper.cs
- XmlIlGenerator.cs
- LoadMessageLogger.cs
- ServerReliableChannelBinder.cs
- LineServices.cs
- WindowsScroll.cs
- Composition.cs
- HtmlTitle.cs
- PrintControllerWithStatusDialog.cs
- _emptywebproxy.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- GeneralTransform3DTo2DTo3D.cs
- XmlAttribute.cs
- RuntimeConfig.cs
- CommandHelpers.cs
- ResourceDescriptionAttribute.cs
- AsyncResult.cs
- HelpProvider.cs
- Drawing.cs
- PackageProperties.cs
- FacetDescriptionElement.cs
- URLString.cs
- InternalConfigHost.cs
- CompositeFontInfo.cs
- SqlDataSource.cs
- FileInfo.cs
- CheckedPointers.cs
- ValueConversionAttribute.cs
- DirectoryRedirect.cs
- TextEndOfParagraph.cs
- GenericEnumConverter.cs
- DoubleLink.cs
- QilVisitor.cs
- ToolStripProgressBar.cs
- ApplicationCommands.cs
- ReadOnlyCollectionBase.cs
- LostFocusEventManager.cs
- DynamicActivityProperty.cs
- MediaSystem.cs
- RepeaterItemCollection.cs
- _NestedMultipleAsyncResult.cs
- DataSourceProvider.cs
- MethodRental.cs
- Walker.cs
- ApplyImportsAction.cs
- VectorCollection.cs
- SqlColumnizer.cs
- ArgumentValue.cs
- Image.cs
- DesignerTransaction.cs
- CacheMode.cs
- PlanCompilerUtil.cs
- SmtpNtlmAuthenticationModule.cs
- SafeBitVector32.cs
- GrammarBuilderWildcard.cs
- BinaryMessageFormatter.cs
- PointHitTestParameters.cs
- SingleObjectCollection.cs
- BuildProviderAppliesToAttribute.cs
- DebugView.cs
- ListViewSelectEventArgs.cs
- NavigatorInput.cs
- SqlCaseSimplifier.cs
- ProvidePropertyAttribute.cs
- MimeTypeAttribute.cs
- TokenizerHelper.cs
- RuntimeConfig.cs
- ReferentialConstraint.cs
- ExpressionWriter.cs
- CompiledXpathExpr.cs
- BufferBuilder.cs
- SqlMethodCallConverter.cs
- ToolStripTextBox.cs
- VisualBrush.cs
- CacheRequest.cs
- WebPartManagerInternals.cs
- GlobalId.cs
- IssuedSecurityTokenParameters.cs
- XmlBindingWorker.cs
- CorrelationKey.cs
- ViewEvent.cs
- SqlNotificationEventArgs.cs
- SqlReferenceCollection.cs
- WebPageTraceListener.cs
- CancelAsyncOperationRequest.cs
- QilBinary.cs
- WindowsAltTab.cs
- QilChoice.cs
- SkewTransform.cs
- SafeLibraryHandle.cs