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
- DataGridViewRowEventArgs.cs
- LineSegment.cs
- ConnectionManagementSection.cs
- CompletedAsyncResult.cs
- AsyncPostBackTrigger.cs
- RegistrationServices.cs
- DataGridHeaderBorder.cs
- StrokeSerializer.cs
- SspiSafeHandles.cs
- TextParaClient.cs
- Connector.cs
- WebPartAuthorizationEventArgs.cs
- FragmentQueryKB.cs
- StylusPointCollection.cs
- VisualTarget.cs
- SmiEventStream.cs
- StructuredProperty.cs
- XmlText.cs
- TypeRestriction.cs
- EntityDataSourceQueryBuilder.cs
- File.cs
- CaseInsensitiveComparer.cs
- ObjectDataSourceEventArgs.cs
- XPathNode.cs
- ToolStripPanelRow.cs
- TextTreeObjectNode.cs
- RequestSecurityTokenResponseCollection.cs
- GridItemCollection.cs
- ImageIndexConverter.cs
- ConfigurationValue.cs
- TopClause.cs
- VectorValueSerializer.cs
- XmlBinaryWriter.cs
- HtmlInputImage.cs
- SqlDataSourceCommandParser.cs
- ErrorRuntimeConfig.cs
- FrameworkPropertyMetadata.cs
- SyndicationSerializer.cs
- OleDbCommand.cs
- EntityDataSource.cs
- Bits.cs
- NullExtension.cs
- CompressedStack.cs
- Config.cs
- PropertyCondition.cs
- WorkflowEventArgs.cs
- UseManagedPresentationElement.cs
- HandledMouseEvent.cs
- TraceLevelHelper.cs
- LocalServiceSecuritySettingsElement.cs
- Translator.cs
- IPEndPoint.cs
- JoinGraph.cs
- HtmlElement.cs
- Intellisense.cs
- ByteStream.cs
- UserPersonalizationStateInfo.cs
- CustomErrorsSection.cs
- ReservationCollection.cs
- ContainerUtilities.cs
- ConfigurationLoaderException.cs
- SmiConnection.cs
- XPathSingletonIterator.cs
- CompoundFileStorageReference.cs
- WinCategoryAttribute.cs
- DataFormat.cs
- PropertyValueUIItem.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- Attribute.cs
- ConnectorDragDropGlyph.cs
- ModelPerspective.cs
- DesignTimeParseData.cs
- MetafileHeader.cs
- RegistrationServices.cs
- WebServicesSection.cs
- XmlSerializableReader.cs
- KeyFrames.cs
- Propagator.Evaluator.cs
- HttpCachePolicyWrapper.cs
- FixedHyperLink.cs
- SingleAnimation.cs
- COM2Enum.cs
- RSAProtectedConfigurationProvider.cs
- KeyValueInternalCollection.cs
- ApplicationSecurityManager.cs
- ServicePointManager.cs
- RandomNumberGenerator.cs
- _TransmitFileOverlappedAsyncResult.cs
- DNS.cs
- StringUtil.cs
- XmlDictionaryReaderQuotasElement.cs
- RedirectionProxy.cs
- ImageList.cs
- LongTypeConverter.cs
- CollectionViewGroupInternal.cs
- JsonFormatWriterGenerator.cs
- DNS.cs
- ParamArrayAttribute.cs
- ProfileService.cs
- WindowsButton.cs