- 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{}
- }
No comments:
Post a Comment