本文介绍了如何在gridview行上方的鼠标上获取弹出图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Friends ..

如何在gridview行上的鼠标上获取弹出图像,每一行包含不同的缩略图..所以我需要弹出每一行的缩略图图像.


热烈的问候

Shivanand Nagarabetta.

Hi Friends..

How to get the popup image on mouse over gridview row, Each row contains different thumbnail image.. so i need to popup the each row thumb nail image.


Warm Regard

Shivanand Nagarabetta.

推荐答案

protected void GridView_RowDataBound(Object sender, GridViewRowEventArgs e)
{
   DataControlRowType rtype = e.Row.RowType;
   if (rtype == DataControlRowType.DataRow && rtype != DataControlRowType.Footer
       && rtype != DataControlRowType.Separator && rtype != DataControlRowType.Header
       && rtype != DataControlRowType.Pager)
   {
      // Show div   
      // Add parameters of image as per need. may be image location passed
      e.Row.Attributes.Add("onmouseover", "ShowDiv(this);");
      //Hide div
      e.Row.Attributes.Add("onmouseover", "HideDiv(this);");
   }
}


显示网格单元的div onmouseover事件,并
隐藏网格单元的div onmoustout事件.

试试吧!


Show the div onmouseover event of the grid cell, and
Hide the div onmoustout event of the grid cell.

Try!


这篇关于如何在gridview行上方的鼠标上获取弹出图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 00:01
查看更多