鼠标悬停时datagrid单元的工具提示 [英] tooltip of datagrid cell on the mouseover

查看:197
本文介绍了鼠标悬停时datagrid单元的工具提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当用户将鼠标(mouseover)放在数据网格单元而不是行上时,如何显示数据网格单元的工具提示.

请帮我.在此先感谢.

how to display the tooltip of the datagrid cell, whenever user place a mouse (mouseover ) on the datagrid cell instead of row.

Please help me. Thanks in advance.

推荐答案

使用DataGrid ItemDataBound事件.您可以在此处访问单元格级别.

每行都会引发此事件.根据需要在该行中获取单元格.设置每个单元格的工具提示.
Use DataGrid ItemDataBound event. You have cell level access here.

This event will be raised for each row. Get the cells as per your need in it for that row. Set the tooltip for each cell.


使用数据网格中的工具提示服务
use tool tip service in the datagrid


这篇关于鼠标悬停时datagrid单元的工具提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆