如果是DataRow的话可以用:
if (e.Row.RowType == DataControlRowType.DataRow)
{
    DataRowView drv = (DataRowView)e.Row.DataItem;
    DataView dv = drv.DataView;

--------------
但当是RowType.Footer的时候要怎么来取当前的绑定数据谢谢

解决方案 »

  1.   

    那不绑定的话 
    而这时我在要Foot里面显示一些绑字的数据的信息要怎么办呢??
      

  2.   

    DataControlRowTypeFooter 不支持绑定数据
      

  3.   

    可以手工修改RowType.Footer添加数据
      

  4.   

    DataControlRowType.Footer 不支持绑定数据
      

  5.   

    既然不支持了, 根本就不提供数据项给 footer , 也就无法在 footer 中得到数据源项
      

  6.   

    根本就没有数据源,你要得到数据,请使用
    e.Row.FindControl("xxxxxxx")