你好,你是否指的是行预览功能?那么请添加如下代码:- FpSpread1.ActiveSheetView.Rows.Count = 20;
- FpSpread1.ActiveSheetView.Columns.Count = 10;
- FpSpread1.ActiveSheetView.PreviewRowVisible = true;
- FpSpread1.ActiveSheetView.PreviewRowColumnIndex = 0;
- for (int i = 0; i < this.FpSpread1.Sheets[0].Columns.Count; i++)
- {
- this.FpSpread1.Sheets[0].Columns[i].Width = 100;
- }
复制代码
png
|