C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Tooltip


Posted Date: 30 Aug 2008      Total Responses: 2

Posted By: sathya       Member Level: Silver     Points: 1


Hi friends,

How to show dynamic tooltip on every row of datagrid ?




Responses

Author: Arun    30 Aug 2008Member Level: BronzeRating:     Points: 1
hey hi
set the tool tip properties in the datagridview


regards
ARUN




Author: Karthikeyan S    30 Aug 2008Member Level: GoldRating:     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.


Post Reply
You must Sign In to post a response.
Next : DataList
Previous : Footer Template
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

doors in nj

Contact Us    Privacy Policy    Terms Of Use