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
- ToolStripMenuItem.cs
- CriticalFinalizerObject.cs
- ReflectPropertyDescriptor.cs
- _ConnectionGroup.cs
- CodeRegionDirective.cs
- EnterpriseServicesHelper.cs
- SpotLight.cs
- X509Extension.cs
- HtmlCommandAdapter.cs
- FormViewPagerRow.cs
- MapPathBasedVirtualPathProvider.cs
- GridViewColumnCollectionChangedEventArgs.cs
- PropertyItemInternal.cs
- MouseActionConverter.cs
- PaginationProgressEventArgs.cs
- StorageFunctionMapping.cs
- SiteMapNodeItem.cs
- Int64KeyFrameCollection.cs
- mansign.cs
- NGCSerializerAsync.cs
- MessageDesigner.cs
- FileAuthorizationModule.cs
- ISAPIWorkerRequest.cs
- XmlSchemaSimpleContentExtension.cs
- AlternateViewCollection.cs
- Subordinate.cs
- FontInfo.cs
- VectorAnimation.cs
- EntityClientCacheKey.cs
- HttpModule.cs
- WinCategoryAttribute.cs
- InkCanvasFeedbackAdorner.cs
- ProfileSettings.cs
- SafeEventLogWriteHandle.cs
- regiisutil.cs
- QueryTaskGroupState.cs
- RegistryHandle.cs
- TypeSystemProvider.cs
- TransformGroup.cs
- CollectionBuilder.cs
- CompilerTypeWithParams.cs
- ErrorTableItemStyle.cs
- EntityProxyFactory.cs
- Image.cs
- DomainLiteralReader.cs
- DropDownList.cs
- IriParsingElement.cs
- FlowDocumentReader.cs
- XmlSerializerVersionAttribute.cs
- Section.cs
- SqlTriggerAttribute.cs
- CollectionBase.cs
- SAPIEngineTypes.cs
- SecurityRequiresReviewAttribute.cs
- SerialStream.cs
- WebPartEditorOkVerb.cs
- GeneratedCodeAttribute.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- SemanticResultKey.cs
- TypePropertyEditor.cs
- HMACRIPEMD160.cs
- MDIClient.cs
- GACIdentityPermission.cs
- ObjectSecurity.cs
- Config.cs
- DependencyPropertyValueSerializer.cs
- SyntaxCheck.cs
- SolidColorBrush.cs
- InvokePattern.cs
- TimelineClockCollection.cs
- DESCryptoServiceProvider.cs
- ScriptRegistrationManager.cs
- AnimationStorage.cs
- Misc.cs
- Int16AnimationBase.cs
- DefaultEventAttribute.cs
- AttributeUsageAttribute.cs
- ConditionChanges.cs
- BamlMapTable.cs
- ObjectAnimationUsingKeyFrames.cs
- SessionStateContainer.cs
- CngProperty.cs
- Parameter.cs
- ThousandthOfEmRealPoints.cs
- DbConnectionPoolOptions.cs
- WebPartMovingEventArgs.cs
- ConfigurationException.cs
- PerformanceCounterManager.cs
- ObjectCloneHelper.cs
- ListViewTableRow.cs
- RegexWorker.cs
- EventQueueState.cs
- LineInfo.cs
- ResourceDefaultValueAttribute.cs
- GenericsInstances.cs
- HttpTransportElement.cs
- Dynamic.cs
- DocumentXmlWriter.cs
- WebPartTransformerCollection.cs
- DependencyProperty.cs