GridHitInfo.HitTest Property
Gets or sets a value identifying the type of a visual element located under the test point.
Namespace: DevExpress.XtraGrid.Views.Grid.ViewInfo
Assembly: DevExpress.XtraGrid.v20.2.dll
Declaration
public virtual GridHitTest HitTest { get; set; }
Public Overridable Property HitTest As GridHitTest
Property Value
Type | Description |
---|---|
GridHitTest | A GridHitTest enumeration value identifying the type of a visual element that contains the test point. |
Remarks
Note that some View elements can display other elements within them. For instance, the column header panel displays column headers. In turn, column headers may display filter buttons. Thus, you need to be careful when using the HitTest property. If you need to determine whether the test point is over the column header panel, it is not enough to compare the property value to GridHitTest.ColumnPanel. The reason is that a constituent element of the panel may reside under the test point and the HitTest property may return GridHitTest.Column, GridHitTest.ColumnButton, etc. In such cases, it is better to use other properties of the GridHitInfo object. For the example considered, use the GridHitInfo.InColumnPanel property.