没有用过,但是你至少也应该在一行中查找吧:  Button bt = (Button)UltraWebGrid3.(Rows/Items).FindControl("Button2");

解决方案 »

  1.   

    关键是  UltraWebGrid3里的行和列没有FindControl方法
      

  2.   

    Infragistics.WebUI.UltraWebGrid.TemplatedColumn   tcol   = (TemplatedColumn)UltraWebGrid1.Bands[0].Columns[0];//模板列 
    ????????////
    这样 ??
    我用的是WebGrid..估计有点像的地方 !!你看看 
      

  3.   

     (System.Web.UI.WebControls.Button)item.FindControl("Button2");  
    或者这样 !!
      

  4.   

    item  指的是什么
      可不可以帮我写全些
      

  5.   

    如果直接用服务器端ID找不到可以用其客户端ID。办法就是一层一层的获取,最后用button的ClientId得到其客户端ID,然后使用该ID进行获取,你最好研究下客户端的页面,相信对你会有帮助的。
      

  6.   

    不好意思,现在手上没有类似代码,而且我换公司了,不用Infragistics系列控件了。
      

  7.   

    还有不有人用过Infragistics控件?
      

  8.   

    //可以写在任何地方,属于通用代码
    1.Infragistics.WebUI.UltraWebGrid.TemplatedColumn tcol = (TemplatedColumn)UltraWebGrid1.Bands[0].Columns[0];//模板列2.foreach(CellItem item in tcol.CellItems) 
    3.{             
    4.   System.Web.UI.WebControls.CheckBox chkIsHaveRight = 5.         (System.Web.UI.WebControls.CheckBox)item.FindControl("chbShenhe"); 
    6.   if(chkIsHaveRight.Checked  ==  true) 
    7.   { 
    8.      //进行相关的操作9.   }
    10.}