Click here to Skip to main content
12,449,919 members (51,630 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

2.7K views
1 bookmarked
Posted

Show cell value as tool tip for a Windows Form Grid

, 31 Aug 2011 CPOL
Rate this:
Please Sign up or sign in to vote.
Very nice..I was looking for such a code. I added one more line to avoid error on hovering mouse elsewhere in the DataGridView.private void gridView1_CellToolTipTextNeeded(object sender, DataGridViewCellToolTipTextNeededEventArgs e){if (e.ColumnIndex == -1 || e.RowIndex == -1)...

Very nice..I was looking for such a code. I added one more line to avoid error on hovering mouse elsewhere in the DataGridView.

private void gridView1_CellToolTipTextNeeded(object sender,
    DataGridViewCellToolTipTextNeededEventArgs e)
{
if (e.ColumnIndex == -1 || e.RowIndex == -1) return;
    if (e.ColumnIndex == 0)
        e.ToolTipText = "PrintPreview";
    ...
}

License

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

Share

About the Author

Prashant0302k4
United States United States
No Biography provided

You may also be interested in...

Pro
Pro

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160826.1 | Last Updated 31 Aug 2011
Article Copyright 2011 by Prashant0302k4
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid