Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewDataErrorEventArgs.cs / 1305376 / 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
- PropertyEmitterBase.cs
- ManagementEventArgs.cs
- SymbolUsageManager.cs
- AutomationPeer.cs
- HttpEncoder.cs
- AccessibleObject.cs
- TcpServerChannel.cs
- DataGridBoolColumn.cs
- Unit.cs
- DynamicValidator.cs
- StyleModeStack.cs
- MetabaseSettingsIis7.cs
- XmlSchemaSimpleContent.cs
- MeshGeometry3D.cs
- PipeSecurity.cs
- SHA1.cs
- SpeechRecognitionEngine.cs
- FlowLayoutPanel.cs
- LogReserveAndAppendState.cs
- TextTrailingCharacterEllipsis.cs
- TextTreeTextBlock.cs
- MimeTypeMapper.cs
- QilLoop.cs
- TreeNodeBinding.cs
- Win32Native.cs
- StrokeNodeOperations2.cs
- Opcode.cs
- WsatTransactionHeader.cs
- GlobalizationAssembly.cs
- ResetableIterator.cs
- MatrixCamera.cs
- ToolStripDesigner.cs
- _PooledStream.cs
- CaseStatementSlot.cs
- TreeNode.cs
- GeneratedContractType.cs
- ActivityExecutionWorkItem.cs
- Clock.cs
- ExceptionValidationRule.cs
- IndentedTextWriter.cs
- ReturnValue.cs
- EnterpriseServicesHelper.cs
- UrlMapping.cs
- AnimatedTypeHelpers.cs
- BoundColumn.cs
- StateDesigner.LayoutSelectionGlyph.cs
- TraceHwndHost.cs
- NonBatchDirectoryCompiler.cs
- CultureMapper.cs
- SystemIPv4InterfaceProperties.cs
- HtmlInputButton.cs
- TextRunCacheImp.cs
- ActivityExecutionContext.cs
- ChangeBlockUndoRecord.cs
- IteratorAsyncResult.cs
- Range.cs
- UnionCodeGroup.cs
- DataServiceProcessingPipelineEventArgs.cs
- WebSysDefaultValueAttribute.cs
- safelinkcollection.cs
- FlowDecision.cs
- ActivityTypeResolver.xaml.cs
- regiisutil.cs
- ChannelTraceRecord.cs
- TdsParserStateObject.cs
- LineInfo.cs
- RemoteWebConfigurationHostServer.cs
- DeclaredTypeValidator.cs
- ScrollChrome.cs
- ParamArrayAttribute.cs
- FunctionQuery.cs
- EpmCustomContentSerializer.cs
- WebReferenceOptions.cs
- TransactionsSectionGroup.cs
- AssemblyNameEqualityComparer.cs
- StopStoryboard.cs
- RetrieveVirtualItemEventArgs.cs
- StyleXamlParser.cs
- TreeViewCancelEvent.cs
- MonitoringDescriptionAttribute.cs
- XPathSingletonIterator.cs
- ListControlConvertEventArgs.cs
- ThicknessKeyFrameCollection.cs
- RadioButtonList.cs
- MergePropertyDescriptor.cs
- ZipFileInfoCollection.cs
- DataTrigger.cs
- ConditionedDesigner.cs
- ToolStripPanelSelectionGlyph.cs
- ToolboxItemCollection.cs
- TemplateXamlParser.cs
- HtmlTextBoxAdapter.cs
- NotSupportedException.cs
- StreamResourceInfo.cs
- StorageInfo.cs
- DateTimeFormat.cs
- TraceSwitch.cs
- ItemDragEvent.cs
- RootDesignerSerializerAttribute.cs
- ContainerAction.cs