| Author: Arun 30 Aug 2008 | Member Level: Bronze | Rating: Points: 1 |
hey hi set the tool tip properties in the datagridview
regards ARUN
|
| Author: Karthikeyan S 30 Aug 2008 | Member Level: Gold | Rating: Points: 2 |
Hi,
For datagrid or gridview to display tooltip dynmically for each row, column, cell, i have done this in grid view. You can do the same in datagrid also using relevent event. Only event name is different from datagrid and gridview apart from that logic is same to set tooltip or changing any styles/javascript events etc.
Following is the code to set the tooltip dynamically:
protected void gvKRAGoals_DataBound(object sender, EventArgs e) { Label test = (Label)gvr.FindControl("lblGoalType"); test.ToolTip = "Testing Tooltip"; }
above code is can be used in event RowDataBound in gridview also.
This can be used in event ItemDataBound or DataBound in datagrid also.
Note: we can set the tooltip as dynamic values by getting another column particular row cells value. These events are used to draw row by row in datagrid or gridview in server side and here we are overriding the default values of dynamic cells drawn by ASP.Net technology.
|