本帖最后由 dapsjj 于 2016-11-4 10:57 编辑
Spread隐藏C列后,C列消失,无法显示,无法恢复,第三幅图C列消失后,再也点不到C列了。且代码里也没有写C列被隐藏的代码。请问如何恢复显示C列?操作步骤如图所示:
全部代码如下,代码中没有对C列进行隐藏的部分:Form2.Designer.cs:
- namespace CustomizedLoading
- {
- partial class Form2
- {
- /// <summary>
- /// Required designer variable.
- /// </summary>
- private System.ComponentModel.IContainer components = null;
- /// <summary>
- /// Clean up any resources being used.
- /// </summary>
- /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
- #region Windows Form Designer generated code
- /// <summary>
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- /// </summary>
- private void InitializeComponent()
- {
- FarPoint.Win.Spread.TipAppearance tipAppearance1 = new FarPoint.Win.Spread.TipAppearance();
- System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form2));
- this.fpSpread1 = new FarPoint.Win.Spread.FpSpread();
- this.fpSpread1_Sheet1 = new FarPoint.Win.Spread.SheetView();
- ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).BeginInit();
- this.SuspendLayout();
- //
- // fpSpread1
- //
- this.fpSpread1.Location = new System.Drawing.Point(86, 31);
- this.fpSpread1.Name = "fpSpread1";
- this.fpSpread1.Sheets.AddRange(new FarPoint.Win.Spread.SheetView[] {
- this.fpSpread1_Sheet1});
- this.fpSpread1.Size = new System.Drawing.Size(417, 290);
- this.fpSpread1.TabIndex = 0;
- tipAppearance1.BackColor = System.Drawing.SystemColors.Info;
- tipAppearance1.Font = new System.Drawing.Font("MS UI Gothic", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128)));
- tipAppearance1.ForeColor = System.Drawing.SystemColors.InfoText;
- this.fpSpread1.TextTipAppearance = tipAppearance1;
- this.fpSpread1.CellClick += new FarPoint.Win.Spread.CellClickEventHandler(this.fpSpread1_CellClick);
- //
- // fpSpread1_Sheet1
- //
- this.fpSpread1_Sheet1.Models = ((FarPoint.Win.Spread.SheetView.DocumentModels)(resources.GetObject("fpSpread1_Sheet1.Models")));
- this.fpSpread1_Sheet1.SheetName = "Sheet1";
- //
- // Form2
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(624, 415);
- this.Controls.Add(this.fpSpread1);
- this.Name = "Form2";
- this.Text = "Form2";
- this.Load += new System.EventHandler(this.Form2_Load);
- ((System.ComponentModel.ISupportInitialize)(this.fpSpread1)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.fpSpread1_Sheet1)).EndInit();
- this.ResumeLayout(false);
- }
- #endregion
- private FarPoint.Win.Spread.FpSpread fpSpread1;
- private FarPoint.Win.Spread.SheetView fpSpread1_Sheet1;
- }
- }
复制代码
|
|