protected void gvData_DataBound(object sender, EventArgs e)
{
for (int i = 0; i < gvData.Rows.Count; i++)
{
//HyperLinkField 所在column
HyperLink h1 = (HyperLink)gvData.Rows[i].Cells[0].Controls[0];
h1.Enabled = false;
}
}
沒有留言:
張貼留言