/ Published in: C#
Weird issue with Intellisense and the HitTestInfo class. Just type it in, it will compile.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
private void dataGrid1_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e) { try { DataGrid.HitTestInfo hti = dataGrid1.HitTest(e.X,e.Y); if(hti.Type == DataGrid.HitTestType.Cell) { toolTip1.SetToolTip(dataGrid1, dataGrid1[hti.Row, hti.Column].ToString()); } } catch{} }
URL: http://msdn2.microsoft.com/en-us/library/ms996485.aspx