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
- SqlProfileProvider.cs
- Soap12ServerProtocol.cs
- Clipboard.cs
- mongolianshape.cs
- PrintPreviewGraphics.cs
- XmlSerializerOperationGenerator.cs
- ListenerSingletonConnectionReader.cs
- EdmItemCollection.cs
- WorkflowInstanceSuspendedRecord.cs
- DefaultSerializationProviderAttribute.cs
- DataKeyArray.cs
- GZipStream.cs
- SystemIcmpV6Statistics.cs
- MemberPath.cs
- DataBindingValueUIHandler.cs
- UshortList2.cs
- PointCollectionConverter.cs
- EdmRelationshipRoleAttribute.cs
- NamedPipeTransportSecurity.cs
- SqlResolver.cs
- CommandLibraryHelper.cs
- FormViewUpdatedEventArgs.cs
- FormViewUpdateEventArgs.cs
- ObjectSet.cs
- ReferencedAssembly.cs
- DependencySource.cs
- GeneralTransform3D.cs
- CleanUpVirtualizedItemEventArgs.cs
- ResourceReader.cs
- CategoryState.cs
- ResourceDictionary.cs
- ReaderWriterLockWrapper.cs
- HyperLinkStyle.cs
- WebPartDisplayModeCollection.cs
- PropertyOrder.cs
- PropertyMappingExceptionEventArgs.cs
- WindowsFormsSynchronizationContext.cs
- InternalRelationshipCollection.cs
- MembershipSection.cs
- AudioDeviceOut.cs
- ListBoxItemWrapperAutomationPeer.cs
- XamlToRtfParser.cs
- GradientStop.cs
- UrlAuthorizationModule.cs
- Boolean.cs
- TypeElementCollection.cs
- FacetValues.cs
- TypeDelegator.cs
- SqlNotificationRequest.cs
- InternalDispatchObject.cs
- AudioBase.cs
- RecognizerInfo.cs
- sqlinternaltransaction.cs
- XPathBuilder.cs
- XmlWriterDelegator.cs
- GridViewCancelEditEventArgs.cs
- NativeCppClassAttribute.cs
- LinqDataSourceDisposeEventArgs.cs
- GuidConverter.cs
- DescendantQuery.cs
- ColorConvertedBitmap.cs
- SafeReversePInvokeHandle.cs
- DataGridColumn.cs
- GeneralTransformCollection.cs
- FacetValues.cs
- XmlWriterSettings.cs
- _emptywebproxy.cs
- SectionUpdates.cs
- PointHitTestParameters.cs
- ReadContentAsBinaryHelper.cs
- WrapPanel.cs
- XmlSchemaElement.cs
- bidPrivateBase.cs
- ByValueEqualityComparer.cs
- DataConnectionHelper.cs
- EmbeddedMailObject.cs
- CroppedBitmap.cs
- StorageInfo.cs
- SchemaHelper.cs
- SendActivityValidator.cs
- ToolbarAUtomationPeer.cs
- ProtocolViolationException.cs
- invalidudtexception.cs
- Misc.cs
- OrderByQueryOptionExpression.cs
- HttpException.cs
- DataGridViewSelectedRowCollection.cs
- ItemsPresenter.cs
- WebEvents.cs
- GenericXmlSecurityToken.cs
- SqlDataSource.cs
- WebPartTransformer.cs
- WaitHandleCannotBeOpenedException.cs
- HandledEventArgs.cs
- ApplicationSecurityManager.cs
- CodeGenerator.cs
- IpcPort.cs
- TableParaClient.cs
- ConfigurationStrings.cs
- FixedSOMTableCell.cs