Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewRowContextMenuStripNeededEventArgs.cs / 1 / DataGridViewRowContextMenuStripNeededEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System; using System.Diagnostics; ///public class DataGridViewRowContextMenuStripNeededEventArgs : EventArgs { private int rowIndex; private ContextMenuStrip contextMenuStrip; /// public DataGridViewRowContextMenuStripNeededEventArgs(int rowIndex) { if (rowIndex < -1) { throw new ArgumentOutOfRangeException("rowIndex"); } this.rowIndex = rowIndex; } internal DataGridViewRowContextMenuStripNeededEventArgs(int rowIndex, ContextMenuStrip contextMenuStrip) : this(rowIndex) { this.contextMenuStrip = contextMenuStrip; } /// public int RowIndex { get { return this.rowIndex; } } /// public ContextMenuStrip ContextMenuStrip { get { return this.contextMenuStrip; } set { this.contextMenuStrip = 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.Diagnostics; ///public class DataGridViewRowContextMenuStripNeededEventArgs : EventArgs { private int rowIndex; private ContextMenuStrip contextMenuStrip; /// public DataGridViewRowContextMenuStripNeededEventArgs(int rowIndex) { if (rowIndex < -1) { throw new ArgumentOutOfRangeException("rowIndex"); } this.rowIndex = rowIndex; } internal DataGridViewRowContextMenuStripNeededEventArgs(int rowIndex, ContextMenuStrip contextMenuStrip) : this(rowIndex) { this.contextMenuStrip = contextMenuStrip; } /// public int RowIndex { get { return this.rowIndex; } } /// public ContextMenuStrip ContextMenuStrip { get { return this.contextMenuStrip; } set { this.contextMenuStrip = 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
- WebPartManagerInternals.cs
- LinkArea.cs
- DetailsViewModeEventArgs.cs
- TextServicesCompartmentEventSink.cs
- FixUpCollection.cs
- ProfileModule.cs
- PerspectiveCamera.cs
- DataViewSettingCollection.cs
- SqlDuplicator.cs
- UnicodeEncoding.cs
- XamlParser.cs
- DataExpression.cs
- Guid.cs
- ResourceManager.cs
- XmlNodeComparer.cs
- FigureParagraph.cs
- PocoPropertyAccessorStrategy.cs
- QilStrConcat.cs
- XDRSchema.cs
- BuildProvider.cs
- SortAction.cs
- SQLString.cs
- RowToFieldTransformer.cs
- EventLogger.cs
- HScrollProperties.cs
- URLAttribute.cs
- MultiTrigger.cs
- GenericTextProperties.cs
- CheckBoxBaseAdapter.cs
- RoleGroupCollection.cs
- AsymmetricSignatureFormatter.cs
- DataBoundControl.cs
- SrgsElementFactory.cs
- ImageAttributes.cs
- AutomationPropertyInfo.cs
- ListViewGroupCollectionEditor.cs
- AppSettingsExpressionEditor.cs
- PropertyRef.cs
- AssertValidation.cs
- WorkflowInstanceRecord.cs
- DesignTimeVisibleAttribute.cs
- sqlmetadatafactory.cs
- IndentedWriter.cs
- PolicyValidationException.cs
- FixedDSBuilder.cs
- RegisteredHiddenField.cs
- ChangesetResponse.cs
- HttpHandlerActionCollection.cs
- ContextBase.cs
- XmlNavigatorStack.cs
- TextAction.cs
- BinaryFormatter.cs
- ConnectionPoolManager.cs
- WebEvents.cs
- FragmentQueryProcessor.cs
- XmlWrappingWriter.cs
- XmlDomTextWriter.cs
- TextUtf8RawTextWriter.cs
- WebPartExportVerb.cs
- DataGridViewDataConnection.cs
- DataGridViewAccessibleObject.cs
- BindingExpressionBase.cs
- ContextBase.cs
- BaseDataBoundControlDesigner.cs
- Enlistment.cs
- EpmCustomContentDeSerializer.cs
- Localizer.cs
- XmlTextReaderImpl.cs
- CompositeActivityMarkupSerializer.cs
- BindingSource.cs
- CodeEventReferenceExpression.cs
- ByeMessageCD1.cs
- ObjectListComponentEditor.cs
- PageCatalogPart.cs
- FlowLayoutSettings.cs
- StyleModeStack.cs
- ZipIOCentralDirectoryBlock.cs
- TrustManager.cs
- Journaling.cs
- SectionUpdates.cs
- AddIn.cs
- base64Transforms.cs
- TileBrush.cs
- ExpressionBuilderCollection.cs
- TextEditorDragDrop.cs
- CompilerCollection.cs
- HttpCacheVary.cs
- Trustee.cs
- NonVisualControlAttribute.cs
- XmlTextReaderImpl.cs
- SimpleHandlerBuildProvider.cs
- SiblingIterators.cs
- XmlObjectSerializerReadContextComplex.cs
- OdbcUtils.cs
- VirtualDirectoryMappingCollection.cs
- EntityContainerEmitter.cs
- FormCollection.cs
- RemotingException.cs
- ToolBarTray.cs
- CookielessHelper.cs