471,317 Members | 1,889 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

MouseUp not firing

I have a datagrid and a datatable, and use the MouseMove event to bring up a
tooltip. But now when I click on the cell, the MouseUp only fires under
certain conditions.
Here is what I have under MouseMove:
DataGrid.HitTestInfo hitInfo = dg.HitTest(new Point(e.X, e.Y));
if (hitInfo.Row < tCat.Rows.Count && hitInfo.Row > -1)
if (hitInfo.Column == 1)
dg.CurrentCell = new DataGridCell(hitInfo.Row,hitInfo.Column);
DataGridCell dc = dg.CurrentCell;
string txt = dg[dc].ToString();

if (txt.Length > 10)
tt.AutoPopDelay = 3000;
tt.InitialDelay = 2000;
tt.ReshowDelay = 3000;
tt.SetToolTip(dg, txt);
tt.Active = true;
else {tt.Active = false;}
else {tt.Active = false;}
If I'm not in column one, the MouseUp works. But in column one, it doesn't,
regardless of whether the tooltip is active or not. It seems to be connected
with this - whenever I'm over a cell in column one, the entire cell is
highlighted (the background color changes to beige-ish and the text is
highlighted, although I never intend this to happen and would like to know
how to stop it).
Any suggestions???
Dec 21 '05 #1
0 1046

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by lkrubner | last post: by
reply views Thread by Mark Schwarz | last post: by
1 post views Thread by Alan | last post: by
reply views Thread by MSDN | last post: by
16 posts views Thread by tommaso.gastaldi | last post: by
12 posts views Thread by Tom Bean | last post: by
reply views Thread by rosydwin | last post: by

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.