Code:
/ DotNET / DotNET / 8.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
- ClientSponsor.cs
- SafeProcessHandle.cs
- SetUserPreferenceRequest.cs
- XAMLParseException.cs
- MethodInfo.cs
- EnumValAlphaComparer.cs
- SQLRoleProvider.cs
- ImplicitInputBrush.cs
- ComPlusThreadInitializer.cs
- XamlSerializationHelper.cs
- PrintDialogException.cs
- SqlProcedureAttribute.cs
- DeferrableContentConverter.cs
- WebPartZoneCollection.cs
- SqlServer2KCompatibilityCheck.cs
- IntPtr.cs
- SoapCommonClasses.cs
- QuotedStringFormatReader.cs
- MetadataSerializer.cs
- DataGridViewRowConverter.cs
- OracleParameterCollection.cs
- Activity.cs
- BinaryWriter.cs
- VisualTarget.cs
- GAC.cs
- IxmlLineInfo.cs
- exports.cs
- ProjectionCamera.cs
- HighlightComponent.cs
- serverconfig.cs
- GridViewItemAutomationPeer.cs
- ToolStripPanelRenderEventArgs.cs
- ConfigXmlReader.cs
- TypeNameConverter.cs
- SqlTransaction.cs
- PointKeyFrameCollection.cs
- OleDbFactory.cs
- RuntimeConfigurationRecord.cs
- MediaPlayer.cs
- FontConverter.cs
- CalendarDesigner.cs
- SqlUdtInfo.cs
- MatrixTransform.cs
- CompiledQueryCacheEntry.cs
- HttpContext.cs
- ClientRolePrincipal.cs
- X509ClientCertificateAuthentication.cs
- CharacterHit.cs
- CodeTryCatchFinallyStatement.cs
- ScriptManager.cs
- InstanceStoreQueryResult.cs
- ContractMethodParameterInfo.cs
- HttpVersion.cs
- HttpRuntimeSection.cs
- ServiceMetadataContractBehavior.cs
- VectorCollection.cs
- SessionStateSection.cs
- PropertyChangedEventManager.cs
- HitTestResult.cs
- SqlProviderUtilities.cs
- DoubleLink.cs
- MemberAssignment.cs
- Util.cs
- WSSecureConversationDec2005.cs
- MailMessageEventArgs.cs
- GraphicsContext.cs
- ItemContainerPattern.cs
- uribuilder.cs
- ParameterModifier.cs
- _AutoWebProxyScriptHelper.cs
- RawStylusActions.cs
- MimeXmlImporter.cs
- ReferencedAssembly.cs
- PermissionSet.cs
- UpdateProgress.cs
- TextInfo.cs
- panel.cs
- XPathSelectionIterator.cs
- TypedAsyncResult.cs
- ResXResourceReader.cs
- ResourceAssociationType.cs
- QueryStringConverter.cs
- DmlSqlGenerator.cs
- autovalidator.cs
- CustomTypeDescriptor.cs
- WebPartZone.cs
- ProfileModule.cs
- safePerfProviderHandle.cs
- HebrewCalendar.cs
- CompositeActivityTypeDescriptorProvider.cs
- ToolStripArrowRenderEventArgs.cs
- Opcode.cs
- InternalUserCancelledException.cs
- WebAdminConfigurationHelper.cs
- EntityTemplateUserControl.cs
- X509CertificateInitiatorClientCredential.cs
- SqlDesignerDataSourceView.cs
- SchemaType.cs
- PlanCompilerUtil.cs
- Int64.cs