现在有需求就是 在Fp_mouseHover事件里 得到当前鼠标所在单元格的行号与列号
private void fpSpread1_MouseHover(object sender, EventArgs e)
{
Point p=this.PointToClient(MousePosition);
HitTestInformation hit = this.fpSpread1.HitTest(p.X, p.Y);
this.txtRemark.Text = hit.ViewportInfo.Row.ToString() + " " + hit.ViewportInfo.Column.ToString();
}
这样写没效果,有办法吗? |
|