if (e.Row.RowType == DataControlRowType.DataRow) { // e.Row.ToolTip = e.Row.FindControl("Country").ToString(); Label lblReview = (Label)e.Row.FindControl("Country"); string tooltip = lblReview.Text; e.Row.Cells[3].Attributes.Add("title", tooltip); }
protected void GridView_RowDataBound(Object sender, GridViewRowEventArgs e) { DataControlRowType rtype = e.Row.RowType; if (rtype == DataControlRowType.DataRow && rtype != DataControlRowType.Footer && rtype != DataControlRowType.Separator && rtype != DataControlRowType.Header && rtype != DataControlRowType.Pager) { //Highlight Row //e.Row.Attributes.Add("onmouseover", "Highlight(this,'#DCEDFF');"); //ShowToolTip e.Row.ToolTip = "This text needs to shown on mouseover of the row!"; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)