foreach(GridViewRow gvr in this.GridView.Rows) { LinkButton linkBtn=gvr.FindControl("id")as LinkButton; ... }