Click here to Skip to main content
15,888,733 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a windows application and there i have a datagrdview control. i want to apply tooltip for the cell of datagridview control and set my respected values.Kindly tell me another way, i already did googling.

Thanks,
Mangesh Barmate
Posted

1 solution

ItemDataBound method can be written as:

C#
if(passElement.Item.ItemType==ListItemType.Item ||
   passElement.Item.ItemType==ListItemType.AlternatingItem)
{
    for(int i=0;i<passElement.Item.Cells.Count;i++)
    {
        passElement.Item.Cells[i].ToolTip =passElement.Item.Cells[i].Text;
    }
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900