我没有用到模板列,都是用这样的方式:<asp:BoundField DataField="ItemCode" HeaderText="编码" ReadOnly="True" >
                <ItemStyle HorizontalAlign="Center" Width="80px"/>
                <HeaderStyle Width="80px" />
            </asp:BoundField>
<asp:CommandField ShowDeleteButton="True" HeaderText="操作" CancelText="取消" DeleteText="删除" EditText="编辑" ShowEditButton="True" UpdateText="更新" >
                <HeaderStyle Width="80px" />
                <ItemStyle HorizontalAlign="Center" />
            </asp:CommandField>当点击编辑按钮时,非只读列自动出现TextBox框,更改其内容,最后更新,但获取不到修改后的值    protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
    {    
        String itemname = ((TextBox)GridView1.Rows[e.RowIndex].Cells[3].Controls[0]).Text.Trim();
...
}这里得到的总是以前的旧值,修改后的值得不到,请问如何解决?