Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TransportReplyChannelAcceptor.cs
- LockedHandleGlyph.cs
- ApplyTemplatesAction.cs
- NamespaceMapping.cs
- SqlCommandSet.cs
- WindowsListViewItemStartMenu.cs
- smtpconnection.cs
- BuiltInExpr.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- NonceCache.cs
- LambdaCompiler.Expressions.cs
- MediaContextNotificationWindow.cs
- DropSourceBehavior.cs
- XmlILStorageConverter.cs
- XmlILAnnotation.cs
- TextTreeUndo.cs
- ReferenceConverter.cs
- SystemInformation.cs
- Point3DCollectionConverter.cs
- ScriptServiceAttribute.cs
- COM2ColorConverter.cs
- CodeNamespace.cs
- Document.cs
- EntryWrittenEventArgs.cs
- NameObjectCollectionBase.cs
- BinaryNode.cs
- XmlSchemaChoice.cs
- IUnknownConstantAttribute.cs
- sitestring.cs
- BitmapCodecInfoInternal.cs
- WebExceptionStatus.cs
- ExeContext.cs
- OleDbErrorCollection.cs
- RoleService.cs
- FrameworkReadOnlyPropertyMetadata.cs
- webbrowsersite.cs
- ContentType.cs
- ControlCachePolicy.cs
- TiffBitmapEncoder.cs
- CompilerParameters.cs
- XmlReflectionMember.cs
- DataBoundLiteralControl.cs
- Types.cs
- DataTemplateSelector.cs
- ViewBox.cs
- DivideByZeroException.cs
- Vector.cs
- DBPropSet.cs
- PathFigure.cs
- LogicalChannel.cs
- Pointer.cs
- Form.cs
- Renderer.cs
- ProgressBarRenderer.cs
- FixedHighlight.cs
- PathData.cs
- EntityDataSourceEntityTypeFilterItem.cs
- HtmlUtf8RawTextWriter.cs
- FormsAuthenticationEventArgs.cs
- ArithmeticException.cs
- FrameworkElement.cs
- DropShadowBitmapEffect.cs
- ProxyHelper.cs
- EntityModelSchemaGenerator.cs
- UpDownBase.cs
- AuthorizationContext.cs
- HttpStaticObjectsCollectionWrapper.cs
- SQLGuidStorage.cs
- followingsibling.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- HostingEnvironmentWrapper.cs
- OracleConnectionString.cs
- MetroSerializationManager.cs
- SingleQueryOperator.cs
- UIElementHelper.cs
- FacetChecker.cs
- SessionStateSection.cs
- WebPartsPersonalization.cs
- LostFocusEventManager.cs
- Ref.cs
- SettingsPropertyNotFoundException.cs
- Int16Animation.cs
- SecurityContextSecurityToken.cs
- SamlAuthorizationDecisionStatement.cs
- HandleValueEditor.cs
- CustomValidator.cs
- SafeNativeMethods.cs
- AssociationType.cs
- AssociationSetEnd.cs
- ListViewHitTestInfo.cs
- NativeRecognizer.cs
- StreamingContext.cs
- DemultiplexingClientMessageFormatter.cs
- cookieexception.cs
- RenderTargetBitmap.cs
- WpfGeneratedKnownTypes.cs
- XPathNodeIterator.cs
- XmlReader.cs
- Stack.cs
- TableCellAutomationPeer.cs