If e.Row.RowType = DataControlRowType.DataRow Then e.Row.Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString)) End If