您说的问题我重现出来了,绑定确实会影响显示,临时方案如下
- var row = fpSpread1.GetViewportTopRow(0);
- var col = fpSpread1.GetViewportLeftColumn(0);
- fpSpread1.Sheets[1].DataSource = GetData();
- fpSpread1.Sheets[2].DataSource = GetData();
- fpSpread1.ShowCell(0, 0, row, col, VerticalPosition.Top, HorizontalPosition.Left);
复制代码 |