您好,
稍微改动一下 class NewControlHomeAction 的代码如下,第一列就能显示出来了:
private class NewControlHomeAction : FarPoint.Win.Spread.Action
{
public override void PerformAction(object source)
{
if (source is SpreadView)
{
SpreadView spreadView = (SpreadView)source;
spreadView.Sheets[spreadView.ActiveSheetIndex].SetActiveCell(0, 1);
spreadView.ShowCell(0, 0, 0, 0, VerticalPosition.Top, HorizontalPosition.Left);
}
}
} |