Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- Filter.cs
- GeometryHitTestResult.cs
- Int16KeyFrameCollection.cs
- ScriptControl.cs
- DependencyObject.cs
- CompilerGlobalScopeAttribute.cs
- RemoteHelper.cs
- StartFileNameEditor.cs
- RightNameExpirationInfoPair.cs
- CommittableTransaction.cs
- PermissionSetTriple.cs
- StrongName.cs
- TerminatorSinks.cs
- NavigationProgressEventArgs.cs
- XmlILCommand.cs
- DataGridViewButtonColumn.cs
- TextSegment.cs
- infer.cs
- DependencyPropertyDescriptor.cs
- X509CertificateInitiatorClientCredential.cs
- entitydatasourceentitysetnameconverter.cs
- DES.cs
- LinearGradientBrush.cs
- SecureUICommand.cs
- XmlParserContext.cs
- Activity.cs
- KnowledgeBase.cs
- DataGridViewToolTip.cs
- LockCookie.cs
- GridItemPatternIdentifiers.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- SoapEnvelopeProcessingElement.cs
- StylusCollection.cs
- CurrencyManager.cs
- DocumentPageTextView.cs
- FlowDocumentPaginator.cs
- AuthenticationModuleElementCollection.cs
- QuotedPrintableStream.cs
- TypeReference.cs
- InvalidCastException.cs
- ProtocolsSection.cs
- ChannelServices.cs
- LinqExpressionNormalizer.cs
- ExceptionUtility.cs
- WSSecurityXXX2005.cs
- BlockUIContainer.cs
- ListViewItem.cs
- PathSegment.cs
- DelayLoadType.cs
- listitem.cs
- URL.cs
- ColorConvertedBitmap.cs
- Point.cs
- ToolStripItem.cs
- BuildProviderInstallComponent.cs
- KeyboardNavigation.cs
- WebEncodingValidatorAttribute.cs
- Viewport3DAutomationPeer.cs
- DataService.cs
- HostProtectionPermission.cs
- LazyTextWriterCreator.cs
- AspNetHostingPermission.cs
- SecureUICommand.cs
- DataSourceXmlClassAttribute.cs
- XPathArrayIterator.cs
- QilExpression.cs
- KnownBoxes.cs
- PreviewKeyDownEventArgs.cs
- FormsAuthenticationConfiguration.cs
- OleDbParameter.cs
- Roles.cs
- StylusButtonCollection.cs
- Ppl.cs
- SqlTypesSchemaImporter.cs
- OperationAbortedException.cs
- TextProviderWrapper.cs
- PointHitTestResult.cs
- CqlLexerHelpers.cs
- SoapAttributeOverrides.cs
- SchemaTableOptionalColumn.cs
- SchemaNames.cs
- CodePropertyReferenceExpression.cs
- LinqDataSourceDisposeEventArgs.cs
- ButtonBase.cs
- Vector3dCollection.cs
- SoapIncludeAttribute.cs
- HandleCollector.cs
- WebPartChrome.cs
- MethodToken.cs
- WmlPhoneCallAdapter.cs
- BindingCollection.cs
- DataQuery.cs
- HtmlControl.cs
- DataGridView.cs
- XamlInterfaces.cs
- FlowDocumentScrollViewer.cs
- CursorConverter.cs
- ChtmlTextWriter.cs
- _Rfc2616CacheValidators.cs
- _Semaphore.cs