Protected Sub GridView5_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GridView5.RowDataBound If e.Row.RowType = DataControlRowType.Header Then For Each cell As DataControlFieldCell In e.Row.Cells cell.Attributes.Add("onclick", "javascript:GetHeaderText('" + cell.Text + "')") Next End If End Sub
If e.Row.RowType = DataControlRowType.Header Then For Each cell As DataControlFieldCell In e.Row.Cells cell.Attributes.Add("onclick", "javascript: GetHeaderText('" + cell.Text + "')") ' Next End If
function GetHeaderText(txt) {alert(txt);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)