protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
这里的e是什么事件啊

解决方案 »

  1.   

     if (((DropDownList)e.Row.FindControl("ddlPower")) != null)
    这行数据是不是搜索所有行的数据啊
      

  2.   

    上面那句意思是“如果GridView中某一行id名为ddlPower的DropDownList不为空”
      

  3.   

    "id名为ddlPower的DropDownList不为空"是什么意思啊
      

  4.   


    无语 程序员会看不懂这句话的意思
    楼主也太那个了吧
    就是绑定到DropdownList的数据不能为空
    知道了不??
      

  5.   

    protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
    这里的e有哪些东西啊
      

  6.   

    错了
    id名为ddlPower的DropDownList的控件是否存在
      

  7.   

    我看还是“id名为ddlPower的DropDownList的控件是否存在”的意思
      

  8.   

    google GridViewRowEventArgs => MSDN解释
    不知道的搜索一下就有了
      

  9.   

    建议楼主 去看MSDN , 基础一定要打好。  基础都不牢,光问, 是问不出结果的, 
      

  10.   

    object sender 发出事件的对象  
    System.EventArgs e 对象中的数据  如果是按钮button的话,那sender就是那个button,  
    e是事件参数,在某些事件里,e用处不大,比如在MouseEventArgs的Mouse事件中,可以看到e包括mouse的坐标值等,以供你的程序使用。