Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- FlowDocumentPaginator.cs
- ActivityExecutionContextCollection.cs
- BufferedGraphicsManager.cs
- listitem.cs
- ValidatorCollection.cs
- OdbcParameterCollection.cs
- DupHandleConnectionReader.cs
- ValueExpressions.cs
- ArgumentFixer.cs
- GenericTypeParameterBuilder.cs
- ClientType.cs
- ActivityTypeDesigner.xaml.cs
- BamlReader.cs
- Stopwatch.cs
- TdsParserHelperClasses.cs
- ModelChangedEventArgsImpl.cs
- _LocalDataStore.cs
- WebRequestModulesSection.cs
- XmlSchemaException.cs
- DateTimeOffsetConverter.cs
- PtsHost.cs
- UriTemplateVariableQueryValue.cs
- FigureParaClient.cs
- Brush.cs
- DirectoryRedirect.cs
- RenderCapability.cs
- LineServicesCallbacks.cs
- MsmqTransportReceiveParameters.cs
- BitmapImage.cs
- PropertyEmitter.cs
- ComponentCache.cs
- TaskCanceledException.cs
- KeyInfo.cs
- HashCryptoHandle.cs
- EnvelopedPkcs7.cs
- CaseInsensitiveHashCodeProvider.cs
- ApplicationSecurityInfo.cs
- BitmapFrameEncode.cs
- StreamGeometry.cs
- OrderedDictionary.cs
- RuleSettingsCollection.cs
- SchemaReference.cs
- BlurEffect.cs
- CaseExpr.cs
- IndexedString.cs
- Int32AnimationBase.cs
- DbQueryCommandTree.cs
- SqlCommand.cs
- StrongNameMembershipCondition.cs
- oledbconnectionstring.cs
- TextPatternIdentifiers.cs
- UnmanagedMarshal.cs
- ExtendedPropertyDescriptor.cs
- FileDialogPermission.cs
- XamlRtfConverter.cs
- SourceChangedEventArgs.cs
- Stack.cs
- Merger.cs
- SqlBooleanMismatchVisitor.cs
- SimpleType.cs
- RC2CryptoServiceProvider.cs
- BasicHttpMessageSecurityElement.cs
- LinearKeyFrames.cs
- ProfileManager.cs
- Mappings.cs
- DebuggerService.cs
- streamingZipPartStream.cs
- OneToOneMappingSerializer.cs
- GAC.cs
- WorkflowServiceHostFactory.cs
- ReadWriteSpinLock.cs
- NamespaceQuery.cs
- JapaneseLunisolarCalendar.cs
- SerializationAttributes.cs
- TemplateBindingExpressionConverter.cs
- SignedInfo.cs
- InternalSafeNativeMethods.cs
- UriParserTemplates.cs
- RestHandler.cs
- AppSettingsExpressionBuilder.cs
- SQLSingleStorage.cs
- OpCopier.cs
- NestedContainer.cs
- SelectedGridItemChangedEvent.cs
- EmptyElement.cs
- LineServicesRun.cs
- PageVisual.cs
- OletxEnlistment.cs
- ResourceManager.cs
- FlowSwitch.cs
- CommandValueSerializer.cs
- ConditionCollection.cs
- OdbcConnectionStringbuilder.cs
- Margins.cs
- XmlLoader.cs
- WMICapabilities.cs
- ResourceSet.cs
- PartialTrustVisibleAssembliesSection.cs
- DispatcherHooks.cs
- MimeReflector.cs