知道你此前是绑定的datatable,所以这边也是,GetTable获取到的是40列,12万行的datatable
- btn.Click += (s,e) =>
- {
- fpSpread.ActiveSheet.ClearSelection();
- fpSpread.ActiveSheet.AddSelection(0, 0, 120000, 40);
- };
- fpSpread.Sheets.Count = 3;
- fpSpread.Features.ExcelCompatibleKeyboardShortcuts = true;
- fpSpread.ActiveSheet.DataSource = MyData.GetTable(40,120000);
复制代码 |