Click here to Skip to main content
13,553,855 members
Click here to Skip to main content
Add your own
alternative version

Tagged as


3 bookmarked
Posted 23 Aug 2011
Licenced CPOL

Show cell value as tool tip for a Windows Form Grid

, 23 Aug 2011
Rate this:
Please Sign up or sign in to vote.
How to show the cell value as a tool tip for a Windows Form Grid.

To show a tool tip, add an event handler for the CellToolTipTextNeeded event and add the code below (depending on your requirement):

private void gridView1_CellToolTipTextNeeded(object sender, 
    DataGridViewCellToolTipTextNeededEventArgs e)
    if (e.ColumnIndex == 0)
        e.ToolTipText = "PrintPreview";
    else if (e.ColumnIndex == 1)
        e.ToolTipText = "Print";
    else if (e.ColumnIndex == 2)
        e.ToolTipText = "delete the file";
        e.ToolTipText = string.Format("{0}", 


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


About the Author

India India
No Biography provided

You may also be interested in...


Comments and Discussions

-- There are no messages in this forum --
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01-2016 | 2.8.180515.1 | Last Updated 23 Aug 2011
Article Copyright 2011 by b4usat
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid