//Add java script function on cells with value
protected void GridUsers_RowCreated(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Cells[1].Attributes.Add(“onClick”, “JavaScript: GetOrderDetail(‘” + Convert.ToInt32(GridUsers.DataKeys[e.Row.RowIndex].Value.ToString()) + “‘)”);

}
}

Leave a Comment

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply