Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. // //----------------------------------------------------------------------------- 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
- GuidelineCollection.cs
- TemplateControlCodeDomTreeGenerator.cs
- CodeAttachEventStatement.cs
- IIS7WorkerRequest.cs
- TextFormatterImp.cs
- PriorityQueue.cs
- BindingNavigator.cs
- ProfileInfo.cs
- SiteMap.cs
- DataGridViewSelectedRowCollection.cs
- SetterBase.cs
- ToolStripDropDownClosedEventArgs.cs
- HostSecurityManager.cs
- ProcessRequestArgs.cs
- FileSystemEnumerable.cs
- SupportingTokenAuthenticatorSpecification.cs
- DelegatingTypeDescriptionProvider.cs
- OleDbInfoMessageEvent.cs
- GPRECT.cs
- WebEventTraceProvider.cs
- QilLoop.cs
- DataSvcMapFile.cs
- SwitchLevelAttribute.cs
- MetadataItemCollectionFactory.cs
- HttpApplicationFactory.cs
- dbdatarecord.cs
- ExceptionRoutedEventArgs.cs
- TextRangeEdit.cs
- NewArrayExpression.cs
- ContainerVisual.cs
- TextServicesCompartmentContext.cs
- LogEntryHeaderDeserializer.cs
- TextRunCacheImp.cs
- ClientConfigurationHost.cs
- IpcClientManager.cs
- XmlNodeReader.cs
- SpecialNameAttribute.cs
- XhtmlBasicPhoneCallAdapter.cs
- DoubleUtil.cs
- Signature.cs
- AnnotationService.cs
- DataChangedEventManager.cs
- XPathDocument.cs
- KeyTime.cs
- ToolBarButton.cs
- EventLogger.cs
- PhysicalAddress.cs
- Path.cs
- StructuralComparisons.cs
- ProcessStartInfo.cs
- Panel.cs
- Maps.cs
- RegexFCD.cs
- XmlObjectSerializerReadContextComplexJson.cs
- EventDescriptorCollection.cs
- sqlmetadatafactory.cs
- SelectorItemAutomationPeer.cs
- UrlMappingsSection.cs
- Accessible.cs
- WmfPlaceableFileHeader.cs
- InternalMappingException.cs
- ByteFacetDescriptionElement.cs
- CustomDictionarySources.cs
- ArgumentValueSerializer.cs
- FontDriver.cs
- IgnoreFlushAndCloseStream.cs
- ConnectionManagementElementCollection.cs
- WebEvents.cs
- SqlProfileProvider.cs
- listitem.cs
- EditorServiceContext.cs
- ImageSource.cs
- DataPointer.cs
- ResizeGrip.cs
- PointCollection.cs
- Authorization.cs
- SmiXetterAccessMap.cs
- BigIntegerStorage.cs
- Matrix3DConverter.cs
- SQLInt64Storage.cs
- DeadCharTextComposition.cs
- TypeConverter.cs
- HyperLink.cs
- PropertyGeneratedEventArgs.cs
- JsonReaderDelegator.cs
- EditorBrowsableAttribute.cs
- StringFormat.cs
- StubHelpers.cs
- WebMessageBodyStyleHelper.cs
- CalendarDesigner.cs
- DataGridPagingPage.cs
- CFGGrammar.cs
- TdsParserStaticMethods.cs
- BuilderInfo.cs
- NetworkCredential.cs
- TypefaceMetricsCache.cs
- EmissiveMaterial.cs
- TableLayoutColumnStyleCollection.cs
- ClrPerspective.cs
- FilterFactory.cs