DataGridView.HitTestInfo 相当于 Infragistics.Win.UltraWinGrid.UltraGrid?

发布于 2024-07-06 08:49:22 字数 74 浏览 12 评论 0原文

有谁知道 Infragistics UltraGrid 控件是否提供与 DataGridView.HitTestInfo 类似的功能?

Does anyone know if the Infragistics UltraGrid control provides functionality similar to that of DataGridView.HitTestInfo?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

面犯桃花 2024-07-13 08:49:22

检查这个

它们不转换坐标,但使用特殊的 Infragistics 网格事件 (MouseEnterElement) 获取鼠标当前悬停在其上的元素。

也许有帮助。

Check this out.

They don't convert the coordinates, but they use a special Infragistics grid event (MouseEnterElement) to get the element, which the mouse currently hovers over.

Maybe it helps.

辞慾 2024-07-13 08:49:22

有一个 .MousePosition 属性,它返回 System.Drawing.Point 和“获取屏幕坐标中鼠标光标的位置”,但我使用的是旧版本的 UltraWinGrid (2003)。

他们有免费试用版下载,因此您可以查看他们是否已将其添加到他们最新最好的:o)

There's a .MousePosition property which returns System.Drawing.Point and "Gets the position of the mouse cursor in screen coordinates" but I'm using an older version of their UltraWinGrid (2003).

They have a free trial download, so you could see if they've added it to their latest and greatest :o)

眼睛会笑 2024-07-13 08:49:22

如果您有 UltraGrid 的 MouseEventHandler,那么您可以执行以下操作:

UltraGrid grid = (UltraGrid)sender;

UIElement element = grid.DisplayLayout.UIElement.ElementFromPoint(new Point(e.X, e.Y));

然后,您可以使用 element.GetContext() 根据其预期类型强制转换元素:

 UltraGridCell cell = (UltraGridCell)element.GetContext(typeof(UltraGridCell));

If you had a MouseEventHandler for the UltraGrid then you can do the following:

UltraGrid grid = (UltraGrid)sender;

UIElement element = grid.DisplayLayout.UIElement.ElementFromPoint(new Point(e.X, e.Y));

You can then cast the element depending on its expected type using element.GetContext():

 UltraGridCell cell = (UltraGridCell)element.GetContext(typeof(UltraGridCell));
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文