这个问题的原因是: 2003中 DataGrid.DataKey[e.ItemIndex].ToString() 2005中 GridView.DataKey[e.RowIndex].Value 看明白了吗?