Is it possible to add a java script mouse over to a grid control cell? If so, how do you do it?
Specifically, we're trying to show a different tool tip for each cell, not the entire column or row.
Is it possible to add a java script mouse over to a grid control cell? If so, how do you do it?
Specifically, we're trying to show a different tool tip for each cell, not the entire column or row.
Yes it's possible. At your grid's RowDataBound, try to add your javascript using Row.Cells :
void GridView1_RowDataBound(Object sender, GridViewRowEventArgs e)
{
if(e.Row.RowType == DataControlRowType.DataRow)
{
//e.Row.Cells[1].Attributes["onmouseover"];
}
}
You should be able to add the tooltip to each cell / column like so:
gridview.rows(x).cells(y).ToolTip="blah"
or say in the RowDataBound event...
e.Row.Cells(x).ToolTip="blah"