Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewRowContextMenuStripNeededEventArgs.cs / 1305376 / 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
- MappingMetadataHelper.cs
- GenericAuthenticationEventArgs.cs
- InstanceDataCollectionCollection.cs
- DataTableReaderListener.cs
- XmlSchemaValidator.cs
- DefinitionUpdate.cs
- UIElementAutomationPeer.cs
- HtmlTernaryTree.cs
- XmlWriter.cs
- ResourceSet.cs
- ServiceModelExtensionElement.cs
- Int64AnimationBase.cs
- QueryPageSettingsEventArgs.cs
- DbRetry.cs
- KeyConstraint.cs
- RefreshPropertiesAttribute.cs
- HtmlShimManager.cs
- RowSpanVector.cs
- MdImport.cs
- ExclusiveNamedPipeTransportManager.cs
- SqlUtil.cs
- RequestNavigateEventArgs.cs
- WebBrowser.cs
- RunClient.cs
- ProxyWebPartConnectionCollection.cs
- WpfWebRequestHelper.cs
- DocumentApplicationJournalEntry.cs
- JpegBitmapEncoder.cs
- ViewCellRelation.cs
- MediaCommands.cs
- __ConsoleStream.cs
- EventBuilder.cs
- XmlDataProvider.cs
- EncryptedData.cs
- SystemResourceKey.cs
- EntityDataSourceDesigner.cs
- SelfIssuedAuthRSACryptoProvider.cs
- TypeListConverter.cs
- FirstMatchCodeGroup.cs
- PropertyRecord.cs
- EmulateRecognizeCompletedEventArgs.cs
- Renderer.cs
- ByteFacetDescriptionElement.cs
- OleDbRowUpdatedEvent.cs
- GC.cs
- EventArgs.cs
- WorkflowApplicationIdleEventArgs.cs
- EUCJPEncoding.cs
- ZipFileInfo.cs
- RegexNode.cs
- CombinedGeometry.cs
- AdjustableArrowCap.cs
- ParameterCollectionEditorForm.cs
- EmptyCollection.cs
- GenericRootAutomationPeer.cs
- XmlBinaryReader.cs
- EntityDataSourceUtil.cs
- EditorZoneBase.cs
- Literal.cs
- Nullable.cs
- ConfigurationManagerHelper.cs
- TemplateControlParser.cs
- DefaultEvaluationContext.cs
- TemplateKey.cs
- DocumentGridPage.cs
- WebPartCatalogCloseVerb.cs
- ExtensionSimplifierMarkupObject.cs
- DataBinding.cs
- ErrorItem.cs
- Token.cs
- UnhandledExceptionEventArgs.cs
- SymmetricSecurityProtocol.cs
- ExtenderProviderService.cs
- Function.cs
- XmlUtil.cs
- TextSimpleMarkerProperties.cs
- ChtmlMobileTextWriter.cs
- ExtensionFile.cs
- XamlParser.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- OleDbSchemaGuid.cs
- BehaviorDragDropEventArgs.cs
- Message.cs
- AppLevelCompilationSectionCache.cs
- CompilerGlobalScopeAttribute.cs
- PagedControl.cs
- SQLDouble.cs
- List.cs
- DataObjectPastingEventArgs.cs
- AddInSegmentDirectoryNotFoundException.cs
- ThreadPool.cs
- EmptyImpersonationContext.cs
- DataRelationPropertyDescriptor.cs
- TraceListeners.cs
- ObjectCacheHost.cs
- ParentQuery.cs
- OutputScopeManager.cs
- ZipIOModeEnforcingStream.cs
- Int32Animation.cs
- CommentGlyph.cs