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
- GiveFeedbackEventArgs.cs
- FlowchartStart.xaml.cs
- ServiceOperationParameter.cs
- MsmqUri.cs
- ConstructorNeedsTagAttribute.cs
- ToolStripControlHost.cs
- ListMarkerSourceInfo.cs
- StrokeCollection.cs
- DataGridColumn.cs
- _ProxyRegBlob.cs
- ChildChangedEventArgs.cs
- DataTableNewRowEvent.cs
- HostingEnvironmentSection.cs
- HttpResponse.cs
- TextBoxAutoCompleteSourceConverter.cs
- Bitmap.cs
- IdentityModelStringsVersion1.cs
- LocalizationParserHooks.cs
- BinaryMethodMessage.cs
- Vector3DAnimationUsingKeyFrames.cs
- MobileControlsSectionHandler.cs
- SkipQueryOptionExpression.cs
- FileUpload.cs
- UserControl.cs
- UnmanagedMemoryStreamWrapper.cs
- RawContentTypeMapper.cs
- Int32CAMarshaler.cs
- EntityChangedParams.cs
- ManifestResourceInfo.cs
- ServiceRoute.cs
- WebHttpDispatchOperationSelector.cs
- SlipBehavior.cs
- Brush.cs
- CommandLineParser.cs
- GroupDescription.cs
- XmlSchemaExternal.cs
- BlockCollection.cs
- EventPrivateKey.cs
- ProviderConnectionPoint.cs
- ServiceThrottlingElement.cs
- ContainerSelectorGlyph.cs
- Exceptions.cs
- TransformerConfigurationWizardBase.cs
- FileRecordSequenceCompletedAsyncResult.cs
- SettingsPropertyValue.cs
- DataGridHeaderBorder.cs
- XmlChoiceIdentifierAttribute.cs
- OleDbRowUpdatingEvent.cs
- PersonalizationAdministration.cs
- CodeDomDecompiler.cs
- DefaultMergeHelper.cs
- Perspective.cs
- DataGridViewCellConverter.cs
- XPathNodePointer.cs
- DataBoundLiteralControl.cs
- GiveFeedbackEvent.cs
- IdentityModelDictionary.cs
- DetailsViewRowCollection.cs
- OleDbDataReader.cs
- StreamAsIStream.cs
- WebPartCollection.cs
- SecurityState.cs
- GeneralTransformCollection.cs
- CookieHandler.cs
- _HelperAsyncResults.cs
- SecurityChannel.cs
- Drawing.cs
- WebUtil.cs
- WorkerRequest.cs
- ContextInformation.cs
- CompositeFontParser.cs
- BuilderElements.cs
- DataTableReader.cs
- GridViewHeaderRowPresenter.cs
- SignatureHelper.cs
- SemaphoreSecurity.cs
- CompositeScriptReferenceEventArgs.cs
- DelegatingConfigHost.cs
- EncoderBestFitFallback.cs
- FixedTextBuilder.cs
- DispatcherTimer.cs
- EndpointInfo.cs
- UpdatePanelTrigger.cs
- VersionedStreamOwner.cs
- HandlerFactoryWrapper.cs
- DrawingServices.cs
- IsolatedStorageException.cs
- CodeGotoStatement.cs
- DataGridViewRowsAddedEventArgs.cs
- COM2ExtendedUITypeEditor.cs
- ProfileService.cs
- StructuredTypeEmitter.cs
- EntityModelBuildProvider.cs
- _ConnectOverlappedAsyncResult.cs
- MatrixCamera.cs
- NativeObjectSecurity.cs
- XmlSchemaAll.cs
- Registry.cs
- Content.cs
- RuntimeHandles.cs