你好!以上方法如果不能满足需求可以尝试以下方法。
1 同步垂直方向时:
public Form1()
{
InitializeComponent();
fpSpread1.TopChange += new TopChangeEventHandler(fpSpread1_TopChange);
}
void fpSpread1_TopChange(object sender, TopChangeEventArgs e)
{
fpSpread2.SetViewportTopRow(0, e.NewTop);
}
2 同步水平方向时:
public Form1()
{
InitializeComponent();
fpSpread1.LeftChange += new LeftChangeEventHandler(fpSpread1_LeftChange);
}
void fpSpread1_LeftChange(object sender, LeftChangeEventArgs e)
{
fpSpread2.SetViewportLeftColumn(0, e.NewLeft);
} |