http://community.csdn.net/Expert/topic/4789/4789848.xml?temp=.8664514

解决方案 »

  1.   

    lz说“当前编辑的某行”,那么就理解为当前行处于编辑状态TextBox tb = (TextBox)this.DataGrid1.Items[this.DataGrid1.EditItemIndex].Cells[0].Controls[0];
    string tmp = tb.Text;
      

  2.   

    在.net社区,如果问题发在C#小区又没有特别说明和特征的话,一般会认为是C/S开发,所以会有个别答案会牛头不对马嘴
      

  3.   

    string str=this.DataGrid1.Rows[0]["StuID"].ToString(),不需要像你那么麻烦吧?
      

  4.   

    在web开发中的DataGrid似乎没有Row这个属性吧。
      

  5.   

    asp.net2.0的GridView控件倒是有Rows属性~PS:【黄牛帮】是不是水园的一个“帮派”??