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
- BufferedWebEventProvider.cs
- SHA384.cs
- BrushValueSerializer.cs
- GlobalItem.cs
- ResponseStream.cs
- SynchronizedInputPattern.cs
- ParallelQuery.cs
- DbConnectionPoolGroupProviderInfo.cs
- ShaderEffect.cs
- KeyMatchBuilder.cs
- BitmapInitialize.cs
- GraphicsPathIterator.cs
- Native.cs
- DefaultPropertyAttribute.cs
- ActivityTypeCodeDomSerializer.cs
- SymmetricAlgorithm.cs
- NetStream.cs
- UnsignedPublishLicense.cs
- DynamicScriptObject.cs
- StoreAnnotationsMap.cs
- DynamicDocumentPaginator.cs
- HandlerFactoryCache.cs
- InputLanguageEventArgs.cs
- ToolStripSplitStackLayout.cs
- OptimizedTemplateContent.cs
- BitmapMetadata.cs
- BatchStream.cs
- MessageBox.cs
- MemberPath.cs
- RouteUrlExpressionBuilder.cs
- DescendantBaseQuery.cs
- Win32MouseDevice.cs
- CodeDomLocalizationProvider.cs
- SelectorItemAutomationPeer.cs
- BufferAllocator.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- SqlSupersetValidator.cs
- JsonSerializer.cs
- HasCopySemanticsAttribute.cs
- PathGeometry.cs
- LinearKeyFrames.cs
- PerfCounterSection.cs
- ReadWriteSpinLock.cs
- StateWorkerRequest.cs
- CustomErrorCollection.cs
- WebPartConnectionsDisconnectVerb.cs
- SmiEventSink_Default.cs
- StyleCollection.cs
- indexingfiltermarshaler.cs
- Win32SafeHandles.cs
- PerfCounterSection.cs
- UriWriter.cs
- FontFamily.cs
- EntitySqlQueryCacheKey.cs
- Emitter.cs
- RightsDocument.cs
- StaticExtensionConverter.cs
- BasePattern.cs
- DataTableReaderListener.cs
- FontStretchConverter.cs
- Nullable.cs
- FieldNameLookup.cs
- FileSystemInfo.cs
- CorrelationInitializer.cs
- ToolStripSystemRenderer.cs
- BoolExpressionVisitors.cs
- AnnotationStore.cs
- XmlStreamNodeWriter.cs
- Update.cs
- AutoScrollHelper.cs
- ValueType.cs
- FunctionDetailsReader.cs
- LabelEditEvent.cs
- ShaderRenderModeValidation.cs
- ErrorFormatter.cs
- TraceSection.cs
- CompositeClientFormatter.cs
- SqlXmlStorage.cs
- SystemWebCachingSectionGroup.cs
- MetafileHeaderWmf.cs
- RawAppCommandInputReport.cs
- MailWebEventProvider.cs
- TypeGeneratedEventArgs.cs
- SelectionHighlightInfo.cs
- TextElement.cs
- DataGridViewBand.cs
- DSASignatureFormatter.cs
- ResourceReader.cs
- ReaderWriterLock.cs
- SqlTopReducer.cs
- CheckoutException.cs
- DataSourceHelper.cs
- ComboBox.cs
- ReachPageContentSerializerAsync.cs
- HttpDictionary.cs
- AttributeData.cs
- ExceptionValidationRule.cs
- SupportsPreviewControlAttribute.cs
- HebrewCalendar.cs
- WebColorConverter.cs