你的中文解释从哪里来呢
如下只能取dataGrid1里面的内容,你自己翻译吧
private void dataGrid1_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
{
try
{
DataGrid.HitTestInfo hit=this.dataGrid1.HitTest(e.X,e.Y);
this.label2.Text=this.dataGrid1[hit.Row,hit.Column].ToString();
this.label2.Location=new Point(e.X+this.dataGrid1.Left,e.Y+this.dataGrid1.Top);
}
catch{}
}