your code looks ok, can you add a breakpoint on 
BindDataGrid();
in DoItemUpdate, and debug your page to see it ever gets there?otherwise, it could be some caching problem

解决方案 »

  1.   

    你的编码看上去没问题,在DoItemUpdate方法里的
    BindDataGrid();
    处,加个断点,看是否执行BindDataGrid()了否则的话,也许是缓存问题,去IE菜单,工具->网络选项->普通页,按设置按钮,选“每次访问”。
      

  2.   

    缓存问题可能性不是很大,因为再次刷新能显示修改后的结果
    page_load这么写
    if (!Page.IsPostBack)
    {
    BindDataGrid();
    }
    else
    {
    MyDataGrid.EditItemIndex = -1;
    BindDataGrid();
    }