Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ProgressBarAutomationPeer.cs
- PropertyGridCommands.cs
- ReadOnlyDictionary.cs
- X509SecurityTokenAuthenticator.cs
- XmlSchemaSimpleContent.cs
- Events.cs
- BorderGapMaskConverter.cs
- CategoryGridEntry.cs
- PersonalizableAttribute.cs
- ComponentChangedEvent.cs
- DefaultValueConverter.cs
- XmlSchemaInclude.cs
- SetterBase.cs
- SafeIUnknown.cs
- Selection.cs
- SocketElement.cs
- XmlElementList.cs
- SessionStateContainer.cs
- SyndicationSerializer.cs
- CoreSwitches.cs
- ExtendedPropertyCollection.cs
- CharEnumerator.cs
- AttributeCollection.cs
- SpellerStatusTable.cs
- HttpsHostedTransportConfiguration.cs
- VectorAnimationBase.cs
- login.cs
- WebBrowser.cs
- ResolveDuplexCD1AsyncResult.cs
- RenderContext.cs
- SimpleType.cs
- HwndTarget.cs
- WindowsRebar.cs
- COAUTHINFO.cs
- StackSpiller.cs
- EntityProviderFactory.cs
- HttpModuleAction.cs
- ModelItem.cs
- CompressEmulationStream.cs
- ProfilePropertySettings.cs
- DecoderBestFitFallback.cs
- Grant.cs
- ColumnHeaderConverter.cs
- EmptyControlCollection.cs
- Encoding.cs
- AncillaryOps.cs
- Rect.cs
- Merger.cs
- ClientTarget.cs
- CDSsyncETWBCLProvider.cs
- ObjectDataSourceFilteringEventArgs.cs
- _NegoState.cs
- CodeCastExpression.cs
- Error.cs
- XmlToDatasetMap.cs
- TableLayoutStyleCollection.cs
- DataObjectEventArgs.cs
- DataSourceSelectArguments.cs
- DbConnectionPool.cs
- MultiView.cs
- BufferedWebEventProvider.cs
- MappingModelBuildProvider.cs
- ObjectComplexPropertyMapping.cs
- Viewport3DVisual.cs
- GridLength.cs
- TrackingMemoryStream.cs
- SessionIDManager.cs
- LoginUtil.cs
- LogWriteRestartAreaAsyncResult.cs
- ByteFacetDescriptionElement.cs
- IisTraceWebEventProvider.cs
- ButtonFieldBase.cs
- DrawingVisual.cs
- ConnectionInterfaceCollection.cs
- Dispatcher.cs
- SHA512Managed.cs
- UriExt.cs
- ExtenderProvidedPropertyAttribute.cs
- OutputWindow.cs
- ToolstripProfessionalRenderer.cs
- ElementNotAvailableException.cs
- LabelAutomationPeer.cs
- HostingEnvironmentException.cs
- ComponentManagerBroker.cs
- UnwrappedTypesXmlSerializerManager.cs
- SystemWebCachingSectionGroup.cs
- XmlElementAttribute.cs
- StringValidatorAttribute.cs
- MouseGestureValueSerializer.cs
- AuthenticationServiceManager.cs
- BitSet.cs
- SchemaAttDef.cs
- NameValueConfigurationCollection.cs
- UIAgentAsyncBeginRequest.cs
- RowToParametersTransformer.cs
- StyleXamlParser.cs
- Canvas.cs
- MediaElement.cs
- CompoundFileDeflateTransform.cs
- COM2IDispatchConverter.cs