469,934 Members | 1,496 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,934 developers. It's quick & easy.

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 8892
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Michael A. Covington | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.