回复 1楼sdwd_lhq的帖子
请参考以下代码:
- protected void Page_Load(object sender, EventArgs e)
- {
- System.Data.DataTable dt = new System.Data.DataTable();
- dt.Columns.Add("经营范围");
- dt.Columns.Add("行业");
- dt.Rows.Add("小农具修理、手扶拖拉机后斗加工", 8099);
-
- FpSpread1.ActiveSheetView.DataSource = dt;
- FpSpread1.ActiveSheetView.DefaultStyle.CellType = new FarPoint.Web.Spread.GeneralCellType() { AllowWrap = false, Multiline = false };
- }
复制代码 |