473,399 Members | 3,401 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Datagridview cell details with tooltip

Hi,

I need to display some info attached to a row in Datagridview. I
thought to do it in MouseMove event. The problem is that this event is
continuously fired which causes the tooltip to flicker.

I saw a post of some guy complaining on the same issue (he didn't get
any response).
Link:
http://groups.google.com/group/micro...1ad5965c0d73e9

Any way I can do it?

Thanks,
Eran.

Mar 8 '07 #1
3 9027
Well, as a thought (untested) for workarounds: you could keep track of
the last x,y position you updated, and if the mouse hasn't moved
simply exit without updating the tool tip? or perhaps use some kind of
timer so that you only set the tooltip after 200ms of mouse
inactivity? something like that?

Marc
Mar 8 '07 #2
On Mar 8, 12:18 pm, "Marc Gravell" <marc.grav...@gmail.comwrote:
Well, as a thought (untested) for workarounds: you could keep track of
the last x,y position you updated, and if the mouse hasn't moved
simply exit without updating the tool tip? or perhaps use some kind of
timer so that you only set the tooltip after 200ms of mouse
inactivity? something like that?

Marc
Hello Marc and thanks for the reply.

Is this the only way I can do it? Why can't I use the ToolTip class in
datagridview?

Mar 8 '07 #3
On Mar 8, 5:12 pm, Eran.Ya...@gmail.com wrote:
On Mar 8, 12:18 pm, "Marc Gravell" <marc.grav...@gmail.comwrote:
Well, as a thought (untested) for workarounds: you could keep track of
the last x,y position you updated, and if the mouse hasn't moved
simply exit without updating the tool tip? or perhaps use some kind of
timer so that you only set the tooltip after 200ms of mouse
inactivity? something like that?
Marc

Hello Marc and thanks for the reply.

Is this the only way I can do it? Why can't I use the ToolTip class in
datagridview?
Ok, found the solution.
If one wishes to use ToolTip() class for Datagridview instead of using
Datagridview built in tooltip, he should set "ShowCellToolTips" to
false.

Mar 11 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Steve | last post by:
I am looking for an example of a custom user control ( 2 labels and 2 datetime pickers ) in a datagridview cell. Every example I have come across handles only once control such as a datetimepicker...
0
by: Michael A. Covington | last post by:
Suppose I have a string that is too long to fit in a cell, such as "aaabbbcccdddeee". How can I get it to show up as ....ccdddeee rather than as aaabbbcc...
11
by: dgk | last post by:
Is there a way to change the foreground or background color of a single cell in an unbound datagridview?
3
by: Rich | last post by:
Hello, If I want to update data displayed in a datagrideview/datagridview cell, how can I determine what cell I am updating? I am looking at the click event below, for example. Can I get...
10
by: steve | last post by:
Hi All I would like to be able to change the cell borders on certain cells to none at runtime to make a group of cells appear to be merged I have tried the following in the cellformatting...
12
by: cj | last post by:
When viewing a datatable in a datagridview one of the columns in it is a "note" field which can be quite long. I would like to have the note field of the currently selected row of the datagrid...
0
by: varunk2 | last post by:
Hi How to autocomplete a datagridview cell in c# windows forms. Please anybody help me... Thanks in advance Regards,
0
by: hydro123 | last post by:
I am using VC++2008 and am trying to read data enetered in unbound datagridview to implement in function. Under button_click event I entered the following: // initialize varaibles from...
0
by: ziketo | last post by:
Hi, I searched a lot about changing the DataGridView cell borders. BYTES helped me so I will write down the solution: 1. You should override the class DataGridViewTextBoxCell, and the new class...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.