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

  • SEARCH
  • Home
  • 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 8673577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:29:39+00:00 2026-06-12T19:29:39+00:00

I have one gridview in my windows form. Now i’m showing custom tooltip using

  • 0

I have one gridview in my windows form. Now i’m showing custom tooltip using the following code,

private void Audit_Dg_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)


{
          if (e.ColumnIndex == 7 || e.ColumnIndex == 8 || e.ColumnIndex == 10 || e.ColumnIndex == 11 && e.RowIndex >= 0)
          {           
              DataGridViewCell cell = this.Audit_Dg.Rows[e.RowIndex].Cells[e.ColumnIndex];

          cell.ToolTipText = "Click Here To View The Message";


      }
}

it showing my message for those cells satisfying my condition and the cell content for all those doesn’t satisfying my condition. is there any way to remove that tool-tips from my grid-view and show only my custom tool-tip?
if there any way,please help me…

  • 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-06-12T19:29:41+00:00Added an answer on June 12, 2026 at 7:29 pm

    Unfortunately, the DataGridView control does not support this. Its ShowCellToolTips property can only be used to disable tooltips globally. The cases where a tooltip is displayed are documented as:

    • The value of the DataSource property is not null or the value of the VirtualMode property is true, and a handler for the
      CellToolTipTextNeeded event sets the
      DataGridViewCellToolTipTextNeededEventArgs.ToolTipText property to a
      value other than String.Empty.

    • The ToolTipText property of the cell has a value other than String.Empty. Setting this property has no effect when there is a
      CellToolTipTextNeeded event handler because getting the value of the
      property automatically raises the event and returns the ToolTip text
      specified in the event handler.

    • The cell value is truncated in the cell display. When the value of the cell ToolTipText property value is String.Empty, the full
      value of the truncated cell value is displayed in the ToolTip.

    As you can see, there is no way to avoid the third case: If ShowCellToolTips is true and the value of a cell is truncated, a tooltip containing the full value will be displayed.

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

Sidebar

Related Questions

I have a gridview that is bound to a datasource (Windows Forms, VB.NET). One
I am having a windows application where I have a gridview on one of
I have a data grid view in one windows form named GridViewForm. When the
I have one GridView, in its RowDataBound Event, I am assigning ToolTip as below:
I am using asp.net and I'm working with a gridview. I have one of
I have two cascading dropdowns and one gridview control. on page load iam binding
I have an Asp.Net page containing one GridView and a couple of images (google
I have a gridview that shows an image as part of one of its
I have a gridview that contains user info and one of the columns is
I have a simple gridview that contains a label in one of the rows.

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.