GrapeCity MultiRow Windows Forms Documentation
SectionTouchToolBarNeeded Event


Occurs when a Section's shortcut menu is shown.
Syntax
<SRCategoryAttribute("Behavior")>
<SRDescriptionAttribute("ERROR: [Cannot found the resource]")>
Public Event SectionTouchToolBarNeeded As EventHandler(Of SectionTouchToolBarNeededEventArgs)
Dim instance As GcMultiRow
Dim handler As EventHandler(Of SectionTouchToolBarNeededEventArgs)
 
AddHandler instance.SectionTouchToolBarNeeded, handler
[SRCategory("Behavior")]
[SRDescription("ERROR: [Cannot found the resource]")]
public event EventHandler<SectionTouchToolBarNeededEventArgs> SectionTouchToolBarNeeded
Event Data

The event handler receives an argument of type SectionTouchToolBarNeededEventArgs containing data related to this event. The following SectionTouchToolBarNeededEventArgs properties provide information specific to this event.

PropertyDescription
ScopeGets the cell area that the event occurs for.  
SectionIndexGets the index of the owner Section that the event occurs for.  
TouchToolBarGets or sets the shortcut menu for the section that raised the SectionTouchToolBarNeeded event.  
Remarks

This event can only be fired when the VirtualMode property is true or the DataSource property is not a null reference (Nothing in Visual Basic).

When you handle the SectionTouchToolBarNeeded event, the shortcut menu that you specify in the handler is shown whenever the user right-clicks a row unless the CellTouchToolBarNeeded overrides the shortcut menu for the specific cell that was clicked.

The SectionTouchToolBarNeeded event also occurs whenever the value of the Section.TouchToolBar property is retrieved, either programmatically or when the user right-clicks a row.

You can use the SectionTouchToolBarNeededEventArgs.SectionIndex property to determine the state of a section or the values it contains, and use this information to change or modify the SectionowTouchToolBarNeededEventArgs.TouchToolBar property. This property is initialized with the value of the section's Section.TouchToolBar property, which the event value overrides.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GcMultiRow Class
GcMultiRow Members

 

 


Copyright © GrapeCity, inc. All rights reserved.