Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6367785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:35:36+00:00 2026-05-25T00:35:36+00:00

How can you show the tooltip for datagridview for every item in datagridview when

  • 0

How can you show the tooltip for datagridview for every item in datagridview when you hover mouse over the item in that particular row?

I have table product with columns:

product name 
product price 
product description
product image ....

I have a requirement that I have a datagridview with columns and I am getting these from database:

product name 
product price 
product image ....

Now I want to show the tooltip like this: if I have mouse over the product image, the product description will be displayed for that product. I want to do this for every row. Would anyone please help on this one?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T00:35:37+00:00Added an answer on May 25, 2026 at 12:35 am

    Take a look at the DataGridViewCell.ToolTipText property and use the DataGridView’s CellFormatting event to set this property value. You can use the event’s DataGridViewCellFormattingEventArgs ColumnIndex property to determine if the event is firing for the column you want to set a tool tip for and if so use the event’s RowIndex to specify that tool tip’s value.

    The sample in the MSDN article I linked have a fine example of usage, but your code might look something like this:

    private void dataGridView1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) {
        if (e.ColumnIndex == dataGridView1.Columns[nameOrIndexOfYourImageColumn].Index) {
            var cell = dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex];
            // Set the Cell's ToolTipText.  In this case we're retrieving the value stored in 
            // another cell in the same row (see my note below).
            cell.ToolTipText = dataGridView1.Rows[e.RowIndex].Cells[nameOrIndexOfYourDescriptionColumn].Value.ToString();
        }
    }
    

    Where:
    nameOrIndexOfYourImageColumn = the column name or index value of your image column
    nameOrIndexOfYourDescriptionColumn = the column name or index value with your description data.

    Note: that you’ll need some way to retrieve a row’s Description data. A common way to do this is to have a column for it in your DataGridView, but make since you don’t want to display this column set its Visible property to false. There are other options however.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I show tooltips while performing drag-n-drop. It seems that tooltip display during
I am getting tooltip on mouse hover by each row for current column but
I have an abstract UserControl that I want to show a ToolTip on. This
I have many table cells which I want to show a tooltip once hovered.
How can you show the tooltip for datagridview when cell is selected, not from
Can any help with this, i have an app, i want to show tooltip
I have this function where I need to show tooltip when the mouse is
How can I programatically cause a control's tooltip to show in a Winforms app
can anyone recommend a website crawler that can show me all of the links
We need a user control that can show Microsoft Office files (Word, Excel..). There

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.