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
- UserControlDesigner.cs
- SoapAttributeOverrides.cs
- InternalConfigConfigurationFactory.cs
- DataGridViewTopLeftHeaderCell.cs
- PointF.cs
- XmlDictionaryWriter.cs
- OutputCacheModule.cs
- AuthenticationService.cs
- SyndicationSerializer.cs
- XmlLanguageConverter.cs
- Parameter.cs
- SqlEnums.cs
- DesignerAttributeInfo.cs
- MultilineStringConverter.cs
- CollectionConverter.cs
- NullableIntSumAggregationOperator.cs
- EventRouteFactory.cs
- InkPresenter.cs
- DescriptionAttribute.cs
- StatusBarAutomationPeer.cs
- XmlNodeList.cs
- Viewport3DAutomationPeer.cs
- X509SubjectKeyIdentifierClause.cs
- CodeNamespaceImport.cs
- SqlReorderer.cs
- Deflater.cs
- SQLDecimal.cs
- FrameworkContentElement.cs
- IndexedString.cs
- CompositeFontInfo.cs
- XamlParser.cs
- FileSystemEnumerable.cs
- WorkflowApplicationAbortedException.cs
- SevenBitStream.cs
- BaseTemplateBuildProvider.cs
- UMPAttributes.cs
- ProfileProvider.cs
- DynamicMethod.cs
- ProgressBarHighlightConverter.cs
- EventItfInfo.cs
- ObjectManager.cs
- HttpCacheVaryByContentEncodings.cs
- Privilege.cs
- GridSplitterAutomationPeer.cs
- ScalarOps.cs
- IPipelineRuntime.cs
- GlobalizationAssembly.cs
- TimeEnumHelper.cs
- DataGridItemAutomationPeer.cs
- ListParaClient.cs
- SqlClientPermission.cs
- DocumentApplication.cs
- HttpListenerPrefixCollection.cs
- QilPatternVisitor.cs
- ImageMetadata.cs
- CssStyleCollection.cs
- ToolStripSeparatorRenderEventArgs.cs
- NullableBoolConverter.cs
- AuthorizationRuleCollection.cs
- DateTimeOffsetConverter.cs
- SQLInt64Storage.cs
- RegisteredScript.cs
- IndicCharClassifier.cs
- ActivityWithResultWrapper.cs
- StringAttributeCollection.cs
- XmlTextEncoder.cs
- SqlDataSource.cs
- SchemaMerger.cs
- CodeEntryPointMethod.cs
- XmlSerializationReader.cs
- ModelItemCollectionImpl.cs
- SchemeSettingElementCollection.cs
- PhysicalFontFamily.cs
- SvcMapFileLoader.cs
- SelectionWordBreaker.cs
- AsmxEndpointPickerExtension.cs
- Util.cs
- HtmlSelect.cs
- BinaryObjectReader.cs
- processwaithandle.cs
- RowParagraph.cs
- TaskCanceledException.cs
- InvokePattern.cs
- StateRuntime.cs
- XmlCharCheckingWriter.cs
- EntityPropertyMappingAttribute.cs
- HttpAsyncResult.cs
- StateMachineDesignerPaint.cs
- XmlSchemaSimpleContent.cs
- SQLInt32Storage.cs
- PointHitTestResult.cs
- ContentTextAutomationPeer.cs
- BaseUriHelper.cs
- PrinterResolution.cs
- _ScatterGatherBuffers.cs
- Stylus.cs
- SystemIPInterfaceStatistics.cs
- SocketConnection.cs
- _ListenerResponseStream.cs
- SecureConversationSecurityTokenParameters.cs