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
- SmiEventSink_Default.cs
- ListCollectionView.cs
- XPathParser.cs
- SimpleHandlerBuildProvider.cs
- ThemeDirectoryCompiler.cs
- ConfigPathUtility.cs
- NetworkStream.cs
- Rect3DValueSerializer.cs
- HttpProxyCredentialType.cs
- GridLengthConverter.cs
- _IPv6Address.cs
- EmptyEnumerator.cs
- TemplatedMailWebEventProvider.cs
- ImageMap.cs
- LinkedResourceCollection.cs
- ScrollContentPresenter.cs
- DeferredSelectedIndexReference.cs
- ValidationSummary.cs
- SelfIssuedAuthRSAPKCS1SignatureFormatter.cs
- SamlAttribute.cs
- RoleManagerEventArgs.cs
- InvalidEnumArgumentException.cs
- SmiMetaDataProperty.cs
- StylusButtonEventArgs.cs
- Pair.cs
- SqlFormatter.cs
- OperationExecutionFault.cs
- URLString.cs
- Privilege.cs
- DataStreams.cs
- ActivityStateQuery.cs
- WebPartConnectionsCloseVerb.cs
- Calendar.cs
- xdrvalidator.cs
- ArrayElementGridEntry.cs
- HtmlValidatorAdapter.cs
- ServiceDescriptions.cs
- DependencyObjectPropertyDescriptor.cs
- SplineQuaternionKeyFrame.cs
- AutomationElement.cs
- BatchParser.cs
- SqlTriggerContext.cs
- WebConvert.cs
- TextEditorSelection.cs
- Material.cs
- TakeOrSkipWhileQueryOperator.cs
- TreeViewEvent.cs
- StringValidator.cs
- basevalidator.cs
- IPEndPoint.cs
- IDReferencePropertyAttribute.cs
- PixelFormatConverter.cs
- SafeHandles.cs
- PolyBezierSegmentFigureLogic.cs
- LeaseManager.cs
- SyndicationItemFormatter.cs
- XmlDocumentFieldSchema.cs
- EventDescriptor.cs
- PeoplePickerWrapper.cs
- TreeNodeCollection.cs
- BrowserInteropHelper.cs
- ClaimTypeRequirement.cs
- LateBoundBitmapDecoder.cs
- SchemeSettingElement.cs
- ZipIOBlockManager.cs
- EventLogTraceListener.cs
- WebPartMenu.cs
- EncodingDataItem.cs
- InputScopeConverter.cs
- XsltContext.cs
- Dynamic.cs
- PixelFormatConverter.cs
- ImageClickEventArgs.cs
- SafeBitVector32.cs
- SoapIncludeAttribute.cs
- EventProxy.cs
- URL.cs
- DataServiceQuery.cs
- Cursors.cs
- HMACSHA384.cs
- TrustManagerPromptUI.cs
- SchemaComplexType.cs
- Column.cs
- InvokeProviderWrapper.cs
- SourceFileInfo.cs
- UrlEncodedParameterWriter.cs
- InkCanvas.cs
- ProviderCollection.cs
- userdatakeys.cs
- HtmlWindowCollection.cs
- PathTooLongException.cs
- ObjectCacheSettings.cs
- SqlBulkCopy.cs
- XmlCharType.cs
- GetLastErrorDetailsRequest.cs
- ConnectionManagementElement.cs
- followingsibling.cs
- MouseEventArgs.cs
- HttpResponse.cs
- Main.cs