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
- TcpTransportManager.cs
- UnmanagedHandle.cs
- Brushes.cs
- TextRangeAdaptor.cs
- BlockUIContainer.cs
- WSSecurityOneDotZeroSendSecurityHeader.cs
- RelatedPropertyManager.cs
- CompressStream.cs
- SiteMapDataSourceDesigner.cs
- NotificationContext.cs
- EntityStoreSchemaFilterEntry.cs
- _LoggingObject.cs
- CodeTypeReferenceExpression.cs
- AccessibilityHelperForVista.cs
- FilteredAttributeCollection.cs
- DrawingCollection.cs
- WebControlsSection.cs
- CodeDefaultValueExpression.cs
- ConfigViewGenerator.cs
- SchemaDeclBase.cs
- GridItem.cs
- CommonRemoteMemoryBlock.cs
- Cursor.cs
- TextEditorSpelling.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- TextEffectCollection.cs
- TemplateControlBuildProvider.cs
- Main.cs
- DefaultMemberAttribute.cs
- GorillaCodec.cs
- Int32Rect.cs
- SerialPort.cs
- SiteMapNodeCollection.cs
- ListBindableAttribute.cs
- Query.cs
- Permission.cs
- ArithmeticLiteral.cs
- Privilege.cs
- Number.cs
- ObjectPersistData.cs
- isolationinterop.cs
- MediaElementAutomationPeer.cs
- XmlUnspecifiedAttribute.cs
- DataGridColumnHeadersPresenter.cs
- CodeNamespace.cs
- CheckBoxList.cs
- DataGridColumnEventArgs.cs
- securitycriticaldata.cs
- StyleHelper.cs
- Thumb.cs
- DataGridViewCheckBoxColumn.cs
- StaticFileHandler.cs
- ScrollBar.cs
- HttpCookieCollection.cs
- RecognitionEventArgs.cs
- ReadWriteObjectLock.cs
- TextServicesDisplayAttributePropertyRanges.cs
- ServiceContractGenerator.cs
- StyleModeStack.cs
- PeerTransportBindingElement.cs
- WindowsTooltip.cs
- NamespaceEmitter.cs
- XmlReflectionMember.cs
- BulletedListEventArgs.cs
- StoragePropertyMapping.cs
- InternalCompensate.cs
- SettingsSection.cs
- FloaterParaClient.cs
- EditingMode.cs
- HtmlTextArea.cs
- SystemColorTracker.cs
- TableHeaderCell.cs
- AsyncCodeActivity.cs
- Point3DCollection.cs
- OneOf.cs
- LiteralDesigner.cs
- ParseHttpDate.cs
- SoapSchemaExporter.cs
- SocketAddress.cs
- Section.cs
- ProcessModule.cs
- HttpRawResponse.cs
- SelectManyQueryOperator.cs
- SqlDataSourceSelectingEventArgs.cs
- AnnotationAuthorChangedEventArgs.cs
- AppDomainEvidenceFactory.cs
- TableSectionStyle.cs
- TextPattern.cs
- Size.cs
- ElasticEase.cs
- XmlEncodedRawTextWriter.cs
- ValueTypeIndexerReference.cs
- TextElementAutomationPeer.cs
- MultiBindingExpression.cs
- LicenseProviderAttribute.cs
- BrushValueSerializer.cs
- TrackingParameters.cs
- TextBlockAutomationPeer.cs
- EdmValidator.cs
- ScopedKnownTypes.cs