回复 9楼zhaoruiheng的帖子
你好,
当前提供的资源中有两段代码涉及到 Spread:
- //
- // gv_Main
- //
- this.gv_Main.AccessibleDescription = "";
- this.gv_Main.ContextMenuStrip = this.cms_Tool;
- this.gv_Main.Dock = System.Windows.Forms.DockStyle.Fill;
- this.gv_Main.Location = new System.Drawing.Point(0, 0);
- this.gv_Main.Name = "gv_Main";
- this.gv_Main.Sheets.AddRange(new FarPoint.Win.Spread.SheetView[] {
- this.gv_Main_Sheet1});
- this.gv_Main.Size = new System.Drawing.Size(1183, 579);
- this.gv_Main.TabIndex = 0;
- this.gv_Main.SelectionChanged += new FarPoint.Win.Spread.SelectionChangedEventHandler(this.gv_Main_SelectionChanged);
- this.gv_Main.TextChanged += new System.EventHandler(this.gv_Main_TextChanged);
- this.gv_Main.KeyUp += new System.Windows.Forms.KeyEventHandler(this.gv_Main_KeyUp);
复制代码
以上为 Spread 控件。
- //
- // gv_Main_Sheet1
- //
- this.gv_Main_Sheet1.Reset();
- this.gv_Main_Sheet1.SheetName = "Sheet1";
- // Formulas and custom names must be loaded with R1C1 reference style
- this.gv_Main_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.R1C1;
- this.gv_Main_Sheet1.ColumnCount = 30;
- this.gv_Main_Sheet1.RowCount = 50;
- this.gv_Main_Sheet1.SelectionFont = new System.Drawing.Font("宋体", 36F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- this.gv_Main_Sheet1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
- this.gv_Main_Sheet1.ReferenceStyle = FarPoint.Win.Spread.Model.ReferenceStyle.A1;
复制代码
以上为 Sheet 代码。
并没有看到关于分组信息的,所以还无法确认您的问题。
请先查询一下是否使用了farpoint.win.spread.groupinfo,或者拖拽空的 Spread 到 From 中看能否重现问题。
谢谢 |