該行有一個LinkButton,單擊時需要突出顯示該行。以編程方式查找GridView行
到目前爲止的代碼:
protected void linkbutton1_Click(object sender, EventArgs e)
{
LinkButton l = (LinkButton)sender;
GridViewRow g = (GridViewRow)l.Parent; // what is the correct way to do this?
//g.Style etc etc
}