回复 2楼ryanshaw的帖子
你可以查看 Spread for WinForms 5.0/6.0 帮助文档中关于 SpreadDataBindingAdapter 的介绍,示例代码如下:
- FarPoint.Win.Spread.Data.SpreadDataBindingAdapter data = new FarPoint.Win.Spread.Data.SpreadDataBindingAdapter();
- data.DataSource = dt;
- data.Spread = fpSpread1;
- data.SheetName = "Sheet1";
- data.MapperInfo = new FarPoint.Win.Spread.Data.MapperInfo(3, 2, 1, 1);
- data.FillSpreadDataByDataSource();
复制代码 |