I am creating a check all box in a gridview from the code behind page bycase DataControlRowType.Header: CheckBox checkAll = new CheckBox();checkAll.ID = "chkAll"; checkAll.Text = "Select All";chec ...