1
我有一個問題,我想在gridview中選擇一行,然後點擊鼠標。在gridview中選擇一行鼠標點擊
我的代碼是這樣的:
protected void PeopleGridView_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes["onmouseover"] = "this.style.cursor='hand';this.style.textDecoration='underline';";
e.Row.Attributes["onmouseout"] = "this.style.textDecoration='none';";
e.Row.Attributes["onclick"] = ClientScript.GetPostBackClientHyperlink(this.gvdetails, "Select$" + e.Row.RowIndex);
}
}
它無法正常工作。我不知道爲什麼?
PLZ建議我關於這一點。
「謝謝」