从手工更改鼠标指针移动到我

问题描述:

我使用已使用密码的用户可以登录并在其密码,他可以阅读或在网格视图网格视图从手工更改鼠标指针移动到我

我有ASP写读写访问 网格视图:按钮我使用网格视图的命令事件

protected void gvMemSpb_RowCreated(object sender, GridViewRowEventArgs e) 
    { 
     if (e.Row.RowType == DataControlRowType.DataRow) 
     { 
      int iRow = int.Parse(Convert.ToString(e.Row.RowIndex)); 
      if (iRow > -1) 
      { 
       if (Session["Me_Status"].ToString() == "" || Session["Me_Status"].ToString() == "R") 
       { 

        e.Row.Cells[3].Enabled = false; 
        e.Row.Cells[4].Enabled = false; 
        e.Row.Cells[5].Enabled = false; 
        lblRWAccess.Text = "This is (read only) Access page"; 
       } 

      } 

     } 

这是我如何禁用ASP禁用:按钮网格视图,他们得到禁止, 但问题是,它仍然显示在它时,鼠标手图标在这些按钮上, 我不想在鼠标上显示手形指针,而不是在事件中搜索n云端,但无法找到可能的解决方案是如何隐藏手指针提前 Vaibhav的德什潘德(MCA)务实

{ 
        ?//what code i add hear to hide hand pointer 
        ? 
        ? 
        e.Row.Cells[3].Enabled = false; 
        e.Row.Cells[4].Enabled = false; 
        e.Row.Cells[5].Enabled = false; 
        lblRWAccess.Text = "This is (read only) Access page"; 
       } 

感谢

我会用CSS来修改按钮的光标,当它被禁止,在禁用你可以添加一个类,将光标的默认设置改为你想要的,并在启用时删除该类。 CSS会像

nohand { cursor: text; } /* this should change the cursor to the I-bar when added to an html element */ 
+0

这样做了 非常非常感谢 我使用的代码如下 {e.Row.Cells [3] .Enabled = FALSE; e.Row.Cells [3] .CssClass =“nohand”; } 并声明css nohand {cursor:text; } 在顶部 ,我非常高兴,现在它的工作很好 谢谢a吨 – vaibhav 2010-01-12 16:15:31