RowCommand 事件中Button bt= gd.Rows[e.RowIndex].FindControls[bt的ID] as Button ;bt.Text=XXX; gd.DataKeys[e.RowIndex] 可以获取本行的DataKey据此查询数据库中内容