2011-08-27 33 views

回答

5

嘗試

protected void Page_Load(object sender, EventArgs e) 
    { 
     GridView1.RowUpdating += new GridViewUpdateEventHandler(GridView1_RowUpdating); 
    } 

    void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e) 
    { 
      e.Cancel = true; 
    }