gridview单元格的数据应出现在工具提示中 [英] gridview cell's data should appear in tool tip

查看:68
本文介绍了gridview单元格的数据应出现在工具提示中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在gridview的行中有很多数据。我想在工具提示中显示单元格或行数据。我用户将鼠标滚动到任何指定的行列然后该数据(完整数据)应出现在工具提示中。

我怎么能用winform

i have lot of data in gridview's rows. I want to show that cell or row data in tooltip.? i user scroll mouse to any specified row column then that data (complete data) should appear in tooltip.
how can i do this m using winform

推荐答案

在这种情况下,您必须使用gridview的RowDataBound事件尝试类似的东西

In that case you have to use RowDataBound event of your gridview try Something Like that
protected void GridView_RowDataBound(object sender, GridViewRowEventArgs e)
{
    if (e.Row.RowType == DataControlRowType.DataRow)
    {
        e.Row.ToolTip =Something; //Bind here the value of your row
    }
}



注意
以这种方式
工具提示将显示整行。


Note
in this way tooltip will be shown for entire row.


这篇关于gridview单元格的数据应出现在工具提示中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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