您好,
可以使用fpSpread1_SelectionChanged事件,参考代码- private void fpSpread1_SelectionChanged(object sender, FarPoint.Win.Spread.SelectionChangedEventArgs e){ FarPoint.Win.Spread.Model.CellRange cr; cr = e.View.Sheets[0].GetSelection(0); Label1.Text = "The first column in the selection is " + cr.Column + " and the first row is " + cr.Row;}
复制代码 |