SendContextMenuForWholeHeaderArea Property
Description
Gets or sets whether the ColumnClick event will be called when the right mouse button is clicked anywhere over the grid header or column headers.
Property Type
Read-write property
Syntax (Visual Basic)
Public Property SendContextMenuForWholeHeaderArea() As Boolean
Remarks
Column headers refer to the headers at the top of the columns. This setting was added for users who use AutoColumnSizing = False. In this case, there might be a large area of the column header with no column.
- SendContextMenuForWholeHeaderArea = True will still send the ColumnClick event in this area.
- SendContextMenuForWholeHeaderArea = False will not send this event.
In our GridSample, set AutoColumnSizing = False, then resize the window to be really large. Now set SendContextMenuForWholeHeaderArea to True or False and right-click each time in the header on the far right to see how to use this property.
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.