Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ForEachAction.cs
- MiniMapControl.xaml.cs
- RowCache.cs
- _ListenerRequestStream.cs
- DesignTimeSiteMapProvider.cs
- DataServiceClientException.cs
- StandardCommands.cs
- HighContrastHelper.cs
- GridLengthConverter.cs
- CommandField.cs
- CurrentChangedEventManager.cs
- RepeaterDesigner.cs
- ConstraintManager.cs
- CellRelation.cs
- WebPartRestoreVerb.cs
- ContextMenu.cs
- PagesChangedEventArgs.cs
- WriterOutput.cs
- IpcClientChannel.cs
- DeclarationUpdate.cs
- SafeCryptoKeyHandle.cs
- HostProtectionPermission.cs
- DbProviderFactories.cs
- OleDbEnumerator.cs
- odbcmetadatacolumnnames.cs
- ExtensionDataObject.cs
- TextViewSelectionProcessor.cs
- ObjectListCommandEventArgs.cs
- Freezable.cs
- BuildProviderAppliesToAttribute.cs
- MD5CryptoServiceProvider.cs
- CalendarButtonAutomationPeer.cs
- ApplicationHost.cs
- DomainLiteralReader.cs
- InstanceLockedException.cs
- Substitution.cs
- SharedPersonalizationStateInfo.cs
- IdentityModelDictionary.cs
- AnyReturnReader.cs
- EnumMemberAttribute.cs
- COM2Properties.cs
- DelegateCompletionCallbackWrapper.cs
- ReadOnlyDictionary.cs
- CodeCatchClause.cs
- StringReader.cs
- XmlIlTypeHelper.cs
- InProcStateClientManager.cs
- UserControlParser.cs
- Trace.cs
- TrailingSpaceComparer.cs
- SignedXml.cs
- Setter.cs
- SHA384Cng.cs
- MethodCallConverter.cs
- Mutex.cs
- TextTreeTextNode.cs
- XmlSchemaValidationException.cs
- ObjectViewFactory.cs
- VariantWrapper.cs
- DataColumn.cs
- TcpWorkerProcess.cs
- FormatSettings.cs
- BitmapImage.cs
- ClassHandlersStore.cs
- TypeRefElement.cs
- DeflateEmulationStream.cs
- ResXResourceReader.cs
- PrintController.cs
- BindingContext.cs
- Claim.cs
- OverflowException.cs
- CompositeFontParser.cs
- WindowsFormsSectionHandler.cs
- PeerValidationBehavior.cs
- WebPartVerbCollection.cs
- DataGridViewIntLinkedList.cs
- CacheChildrenQuery.cs
- MsmqBindingFilter.cs
- ConfigurationSchemaErrors.cs
- ToolStripSplitButton.cs
- StackBuilderSink.cs
- OutputCacheProfileCollection.cs
- ValueType.cs
- CFStream.cs
- NaturalLanguageHyphenator.cs
- UrlAuthorizationModule.cs
- WebControlParameterProxy.cs
- HuffCodec.cs
- AddDataControlFieldDialog.cs
- _RequestLifetimeSetter.cs
- AuthorizationRuleCollection.cs
- PrivilegeNotHeldException.cs
- SoapFault.cs
- GridProviderWrapper.cs
- LineBreak.cs
- StylusCollection.cs
- ListBoxItem.cs
- HitTestParameters3D.cs
- XmlSchemaObject.cs
- TcpProcessProtocolHandler.cs