在GridView中选中行

 在OnRowDataBound事件中绑定onclick事件:

protected void gird_RowDataBound(object sender, GridViewRowEventArgs e) { e.Row.Attributes.Add("onclick", "this.cells[0].childNodes[0].click()"); }

你可能感兴趣的:(object)