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
- ListControl.cs
- DnsCache.cs
- DbConnectionFactory.cs
- PathParser.cs
- SizeConverter.cs
- DataTemplateKey.cs
- NegotiationTokenProvider.cs
- ServicePointManagerElement.cs
- BindToObject.cs
- ReturnValue.cs
- ProviderUtil.cs
- CultureNotFoundException.cs
- MaterializeFromAtom.cs
- DbReferenceCollection.cs
- ExpressionConverter.cs
- WorkflowTransactionOptions.cs
- Console.cs
- DesignSurfaceServiceContainer.cs
- DesignerVerbToolStripMenuItem.cs
- PerSessionInstanceContextProvider.cs
- RenderOptions.cs
- Selector.cs
- PreservationFileReader.cs
- AccessorTable.cs
- InlineCollection.cs
- PtsHelper.cs
- MailDefinition.cs
- StrokeFIndices.cs
- XmlSchemaSimpleTypeRestriction.cs
- ExpressionVisitorHelpers.cs
- SecurityContextSecurityTokenAuthenticator.cs
- ConfigurationErrorsException.cs
- HelpPage.cs
- MetadataSerializer.cs
- BamlRecordWriter.cs
- cookie.cs
- ProxySimple.cs
- PolicyStatement.cs
- Queue.cs
- FlowDocumentReader.cs
- RemotingConfiguration.cs
- ImportedNamespaceContextItem.cs
- TextLineBreak.cs
- XmlSchema.cs
- DataTableExtensions.cs
- XmlObjectSerializerWriteContext.cs
- ToRequest.cs
- DbConnectionStringBuilder.cs
- ProfileSettingsCollection.cs
- ImportCatalogPart.cs
- XmlSchemaExternal.cs
- XmlIlGenerator.cs
- DependencyPropertyHelper.cs
- SystemIcmpV4Statistics.cs
- WindowsToolbarAsMenu.cs
- CallbackValidator.cs
- String.cs
- BrowsableAttribute.cs
- activationcontext.cs
- XmlExceptionHelper.cs
- PolygonHotSpot.cs
- EventTrigger.cs
- CompilerCollection.cs
- _CommandStream.cs
- JpegBitmapDecoder.cs
- ConstraintEnumerator.cs
- Transaction.cs
- WebPartDeleteVerb.cs
- SafeHandles.cs
- UnsafeNativeMethodsMilCoreApi.cs
- HostedElements.cs
- ListViewGroupItemCollection.cs
- ObjectComplexPropertyMapping.cs
- SrgsDocumentParser.cs
- NullableIntAverageAggregationOperator.cs
- IdentitySection.cs
- List.cs
- TrustManagerMoreInformation.cs
- DocumentViewerAutomationPeer.cs
- GraphicsContainer.cs
- ManagedCodeMarkers.cs
- Misc.cs
- InstanceHandle.cs
- ReflectionHelper.cs
- DrawingCollection.cs
- ImageListImageEditor.cs
- CodePrimitiveExpression.cs
- ResourceManager.cs
- GreenMethods.cs
- XmlLinkedNode.cs
- ValidationRuleCollection.cs
- EdmToObjectNamespaceMap.cs
- WindowsToolbar.cs
- InheritanceContextHelper.cs
- DbProviderSpecificTypePropertyAttribute.cs
- ResourceDisplayNameAttribute.cs
- DbTransaction.cs
- ObjectManager.cs
- HwndTarget.cs
- TemplateBamlTreeBuilder.cs