Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ItemsView.CalcHitInfo(Int32, Int32) Method

Returns information about the View elements located at the specified point.

Namespace: DevExpress.XtraGrid.Views.Items

Assembly: DevExpress.XtraGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

#Declaration

public ItemsViewHitInfo CalcHitInfo(
    int x,
    int y
)

#Parameters

Name Type Description
x Int32

The X coordinate of the test point relative to the top-left corner of the grid control.

y Int32

The Y coordinate of the test point relative to the top-left corner of the grid control.

#Returns

Type Description
DevExpress.XtraGrid.Views.Items.ItemsViewHitInfo

An object that contains information on the View elements located at the test point.

#Remarks

Use the CalcHitInfo method to get which ItemsView UI element is located at the target position.

See Also