nielz
  • nielz
  • Newbie Topic Starter
2023-08-19T09:39:34Z
Deleting iGrid from a UserControl
An error occurred while processing this command.
Value cannot be null.
Parameter name: value

Property editor, Cols shows empty list. But iGrid shows columns

ViewMethods.Designer.cs

namespace RunMaster
{
partial class ViewMethods
{
/// <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 Component 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()
{
this.components = new System.ComponentModel.Container();
TenTec.Windows.iGridLib.iGColPattern iGColPattern1 = new TenTec.Windows.iGridLib.iGColPattern();
TenTec.Windows.iGridLib.iGColPattern iGColPattern2 = new TenTec.Windows.iGridLib.iGColPattern();
TenTec.Windows.iGridLib.iGColPattern iGColPattern3 = new TenTec.Windows.iGridLib.iGColPattern();
TenTec.Windows.iGridLib.iGColPattern iGColPattern4 = new TenTec.Windows.iGridLib.iGColPattern();
TenTec.Windows.iGridLib.iGColPattern iGColPattern5 = new TenTec.Windows.iGridLib.iGColPattern();
TenTec.Windows.iGridLib.iGColPattern iGColPattern6 = new TenTec.Windows.iGridLib.iGColPattern();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ViewMethods));
this.GridTextCellStyle = new TenTec.Windows.iGridLib.iGCellStyleDesign();
this.GridColHdrStyle = new TenTec.Windows.iGridLib.iGColHdrStyleDesign();
this.GridCheckboxCellStyle = new TenTec.Windows.iGridLib.iGCellStyleDesign();
this.GridNumberCellStyle = new TenTec.Windows.iGridLib.iGCellStyleDesign();
this.GridIntCellStyle = new TenTec.Windows.iGridLib.iGCellStyleDesign();
this.Panel = new System.Windows.Forms.FlowLayoutPanel();
this.btCancel = new System.Windows.Forms.Button();
this.btOk = new System.Windows.Forms.Button();
this.btRefresh = new System.Windows.Forms.Button();
this.Grid = new TenTec.Windows.iGridLib.iGrid();
this.cmEdit = new System.Windows.Forms.ContextMenuStrip(this.components);
this.Menu_Cut = new System.Windows.Forms.ToolStripMenuItem();
this.Menu_Copy = new System.Windows.Forms.ToolStripMenuItem();
this.Menu_Paste = new System.Windows.Forms.ToolStripMenuItem();
this.Menu_SelectAll = new System.Windows.Forms.ToolStripMenuItem();
this.Menu_Delete = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem6 = new System.Windows.Forms.ToolStripSeparator();
this.Menu_FillDown = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
this.Menu_Explore = new System.Windows.Forms.ToolStripMenuItem();
this.Panel.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.Grid)).BeginInit();
this.cmEdit.SuspendLayout();
this.SuspendLayout();
//
// GridTextCellStyle
//
this.GridTextCellStyle.ReadOnly = TenTec.Windows.iGridLib.iGBool.True;
this.GridTextCellStyle.TextAlign = TenTec.Windows.iGridLib.iGContentAlignment.MiddleLeft;
this.GridTextCellStyle.ValueType = typeof(string);
//
// GridColHdrStyle
//
this.GridColHdrStyle.TextAlign = TenTec.Windows.iGridLib.iGContentAlignment.MiddleCenter;
//
// GridCheckboxCellStyle
//
this.GridCheckboxCellStyle.CustomDrawFlags = TenTec.Windows.iGridLib.iGCustomDrawFlags.Foreground;
this.GridCheckboxCellStyle.ImageAlign = TenTec.Windows.iGridLib.iGContentAlignment.MiddleCenter;
this.GridCheckboxCellStyle.TextAlign = TenTec.Windows.iGridLib.iGContentAlignment.MiddleCenter;
this.GridCheckboxCellStyle.ValueType = typeof(bool);
//
// GridNumberCellStyle
//
this.GridNumberCellStyle.FormatString = "{0:F1}";
this.GridNumberCellStyle.TextAlign = TenTec.Windows.iGridLib.iGContentAlignment.MiddleRight;
this.GridNumberCellStyle.ValueType = typeof(double);
//
// GridIntCellStyle
//
this.GridIntCellStyle.FormatString = "{0:F0}";
this.GridIntCellStyle.TextAlign = TenTec.Windows.iGridLib.iGContentAlignment.MiddleRight;
this.GridIntCellStyle.ValueType = typeof(double);
//
// Panel
//
this.Panel.Controls.Add(this.btCancel);
this.Panel.Controls.Add(this.btOk);
this.Panel.Controls.Add(this.btRefresh);
this.Panel.Dock = System.Windows.Forms.DockStyle.Right;
this.Panel.Location = new System.Drawing.Point(823, 0);
this.Panel.Name = "Panel";
this.Panel.Size = new System.Drawing.Size(123, 500);
this.Panel.TabIndex = 4;
//
// btCancel
//
this.btCancel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.btCancel.Location = new System.Drawing.Point(3, 3);
this.btCancel.Margin = new System.Windows.Forms.Padding(3, 3, 3, 0);
this.btCancel.Name = "btCancel";
this.btCancel.Size = new System.Drawing.Size(117, 23);
this.btCancel.TabIndex = 2;
this.btCancel.Text = "Cancel";
this.btCancel.UseVisualStyleBackColor = true;
this.btCancel.Click += new System.EventHandler(this.btCancel_Click);
//
// btOk
//
this.btOk.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.btOk.Location = new System.Drawing.Point(3, 29);
this.btOk.Margin = new System.Windows.Forms.Padding(3, 3, 3, 0);
this.btOk.Name = "btOk";
this.btOk.Size = new System.Drawing.Size(117, 23);
this.btOk.TabIndex = 1;
this.btOk.Text = "OK";
this.btOk.UseVisualStyleBackColor = true;
this.btOk.Click += new System.EventHandler(this.btOk_Click);
//
// btRefresh
//
this.btRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.btRefresh.Location = new System.Drawing.Point(3, 55);
this.btRefresh.Margin = new System.Windows.Forms.Padding(3, 3, 3, 0);
this.btRefresh.Name = "btRefresh";
this.btRefresh.Size = new System.Drawing.Size(117, 23);
this.btRefresh.TabIndex = 6;
this.btRefresh.Text = "Refresh";
this.btRefresh.UseVisualStyleBackColor = true;
this.btRefresh.Click += new System.EventHandler(this.btRefresh_Click);
//
// Grid
//
this.Grid.Appearance = TenTec.Windows.iGridLib.iGControlPaintAppearance.StyleFlat;
this.Grid.BorderStyle = TenTec.Windows.iGridLib.iGBorderStyle.Flat;
iGColPattern1.CellStyle = this.GridTextCellStyle;
iGColPattern1.ColHdrStyle = this.GridColHdrStyle;
iGColPattern1.Key = "Name";
iGColPattern1.SortOrder = TenTec.Windows.iGridLib.iGSortOrder.None;
iGColPattern1.Text = "Method";
iGColPattern1.Width = 200;
iGColPattern2.CellStyle = this.GridCheckboxCellStyle;
iGColPattern2.ColHdrStyle = this.GridColHdrStyle;
iGColPattern2.Key = "Enabled";
iGColPattern2.SortOrder = TenTec.Windows.iGridLib.iGSortOrder.None;
iGColPattern2.Text = "Enabled";
iGColPattern2.Width = 60;
iGColPattern3.CellStyle = this.GridNumberCellStyle;
iGColPattern3.ColHdrStyle = this.GridColHdrStyle;
iGColPattern3.Key = "TotalMinutes";
iGColPattern3.SortOrder = TenTec.Windows.iGridLib.iGSortOrder.None;
iGColPattern3.Text = "Run cycle [min]";
iGColPattern3.Width = 100;
iGColPattern4.CellStyle = this.GridCheckboxCellStyle;
iGColPattern4.ColHdrStyle = this.GridColHdrStyle;
iGColPattern4.Key = "Standby";
iGColPattern4.SortOrder = TenTec.Windows.iGridLib.iGSortOrder.None;
iGColPattern4.Text = "Standby";
iGColPattern4.Width = 60;
iGColPattern5.CellStyle = this.GridCheckboxCellStyle;
iGColPattern5.ColHdrStyle = this.GridColHdrStyle;
iGColPattern5.Key = "Default";
iGColPattern5.SortOrder = TenTec.Windows.iGridLib.iGSortOrder.None;
iGColPattern5.Text = "Default";
iGColPattern5.Width = 60;
iGColPattern6.CellStyle = this.GridNumberCellStyle;
iGColPattern6.ColHdrStyle = this.GridColHdrStyle;
iGColPattern6.Key = "RespOverLimitDivisor";
iGColPattern6.Text = "Over limit divisor";
iGColPattern6.Width = 108;
this.Grid.Cols.AddRange(new TenTec.Windows.iGridLib.iGColPattern[] {
iGColPattern1,
iGColPattern2,
iGColPattern3,
iGColPattern4,
iGColPattern5,
iGColPattern6});
this.Grid.ContextMenuStrip = this.cmEdit;
this.Grid.Dock = System.Windows.Forms.DockStyle.Fill;
this.Grid.Header.Height = 20;
this.Grid.HighlightSelCells = false;
this.Grid.LayoutObject.Flags = ((TenTec.Windows.iGridLib.iGLayoutFlags)(((TenTec.Windows.iGridLib.iGLayoutFlags.UseColKeys | TenTec.Windows.iGridLib.iGLayoutFlags.ColVisibility)
| TenTec.Windows.iGridLib.iGLayoutFlags.ColWidth)));
this.Grid.Location = new System.Drawing.Point(0, 0);
this.Grid.Name = "Grid";
this.Grid.RowHeader.Appearance = TenTec.Windows.iGridLib.iGControlPaintAppearance.StyleFlat;
this.Grid.RowHeader.Visible = true;
this.Grid.RowResizeMode = TenTec.Windows.iGridLib.iGRowResizeMode.NotAllowed;
this.Grid.RowTextVisible = true;
this.Grid.SelectionMode = TenTec.Windows.iGridLib.iGSelectionMode.MultiExtended;
this.Grid.Size = new System.Drawing.Size(823, 500);
this.Grid.TabIndex = 5;
this.Grid.CellDynamicContents += new TenTec.Windows.iGridLib.iGCellDynamicContentsEventHandler(this.Grid_CellDynamicContents);
this.Grid.CellDynamicFormatting += new TenTec.Windows.iGridLib.iGCellDynamicFormattingEventHandler(this.Grid_CellDynamicFormatting);
this.Grid.CustomDrawCellForeground += new TenTec.Windows.iGridLib.iGCustomDrawCellEventHandler(this.Grid_CustomDrawCellForeground);
this.Grid.RequestEdit += new TenTec.Windows.iGridLib.iGRequestEditEventHandler(this.Grid_RequestEdit);
this.Grid.BeforeCommitEdit += new TenTec.Windows.iGridLib.iGBeforeCommitEditEventHandler(this.Grid_BeforeCommitEdit);
this.Grid.AfterCommitEdit += new TenTec.Windows.iGridLib.iGAfterCommitEditEventHandler(this.Grid_AfterCommitEdit);
this.Grid.TextBoxKeyDown += new TenTec.Windows.iGridLib.iGTextBoxKeyDownEventHandler(this.Grid_TextBoxKeyDown);
this.Grid.CellClick += new TenTec.Windows.iGridLib.iGCellClickEventHandler(this.Grid_CellClick);
this.Grid.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.Grid_KeyPress);
//
// cmEdit
//
this.cmEdit.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.Menu_Cut,
this.Menu_Copy,
this.Menu_Paste,
this.Menu_SelectAll,
this.Menu_Delete,
this.toolStripMenuItem6,
this.Menu_FillDown,
this.toolStripMenuItem1,
this.Menu_Explore});
this.cmEdit.Name = "contextMenu";
this.cmEdit.Size = new System.Drawing.Size(166, 170);
//
// Menu_Cut
//
this.Menu_Cut.Image = ((System.Drawing.Image)(resources.GetObject("Menu_Cut.Image")));
this.Menu_Cut.ImageTransparentColor = System.Drawing.Color.Magenta;
this.Menu_Cut.Name = "Menu_Cut";
this.Menu_Cut.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.X)));
this.Menu_Cut.Size = new System.Drawing.Size(165, 22);
this.Menu_Cut.Text = "Cu&t";
this.Menu_Cut.Click += new System.EventHandler(this.Menu_Cut_Click);
//
// Menu_Copy
//
this.Menu_Copy.Image = ((System.Drawing.Image)(resources.GetObject("Menu_Copy.Image")));
this.Menu_Copy.ImageTransparentColor = System.Drawing.Color.Magenta;
this.Menu_Copy.Name = "Menu_Copy";
this.Menu_Copy.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C)));
this.Menu_Copy.Size = new System.Drawing.Size(165, 22);
this.Menu_Copy.Text = "&Copy";
this.Menu_Copy.Click += new System.EventHandler(this.Menu_Copy_Click);
//
// Menu_Paste
//
this.Menu_Paste.Image = ((System.Drawing.Image)(resources.GetObject("Menu_Paste.Image")));
this.Menu_Paste.ImageTransparentColor = System.Drawing.Color.Magenta;
this.Menu_Paste.Name = "Menu_Paste";
this.Menu_Paste.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.V)));
this.Menu_Paste.Size = new System.Drawing.Size(165, 22);
this.Menu_Paste.Text = "&Paste";
this.Menu_Paste.Click += new System.EventHandler(this.Menu_Paste_Click);
//
// Menu_SelectAll
//
this.Menu_SelectAll.Name = "Menu_SelectAll";
this.Menu_SelectAll.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.A)));
this.Menu_SelectAll.Size = new System.Drawing.Size(165, 22);
this.Menu_SelectAll.Text = "Select &All";
this.Menu_SelectAll.Click += new System.EventHandler(this.Menu_SelectAll_Click);
//
// Menu_Delete
//
this.Menu_Delete.Image = ((System.Drawing.Image)(resources.GetObject("Menu_Delete.Image")));
this.Menu_Delete.Name = "Menu_Delete";
this.Menu_Delete.ShortcutKeys = System.Windows.Forms.Keys.Delete;
this.Menu_Delete.Size = new System.Drawing.Size(165, 22);
this.Menu_Delete.Text = "Delete";
this.Menu_Delete.Click += new System.EventHandler(this.Menu_Delete_Click);
//
// toolStripMenuItem6
//
this.toolStripMenuItem6.Name = "toolStripMenuItem6";
this.toolStripMenuItem6.Size = new System.Drawing.Size(162, 6);
//
// Menu_FillDown
//
this.Menu_FillDown.Name = "Menu_FillDown";
this.Menu_FillDown.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.D)));
this.Menu_FillDown.Size = new System.Drawing.Size(165, 22);
this.Menu_FillDown.Text = "&Fill Down";
this.Menu_FillDown.Click += new System.EventHandler(this.Menu_FillDown_Click);
//
// toolStripMenuItem1
//
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
this.toolStripMenuItem1.Size = new System.Drawing.Size(162, 6);
//
// Menu_Explore
//
this.Menu_Explore.Name = "Menu_Explore";
this.Menu_Explore.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.E)));
this.Menu_Explore.Size = new System.Drawing.Size(165, 22);
this.Menu_Explore.Text = "Explore";
this.Menu_Explore.Click += new System.EventHandler(this.Menu_Explore_Click);
//
// ViewMethods
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.Grid);
this.Controls.Add(this.Panel);
this.Name = "ViewMethods";
this.Size = new System.Drawing.Size(946, 500);
this.Panel.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.Grid)).EndInit();
this.cmEdit.ResumeLayout(false);
this.ResumeLayout(false);

}

#endregion
private System.Windows.Forms.FlowLayoutPanel Panel;
public TenTec.Windows.iGridLib.iGrid Grid;
private TenTec.Windows.iGridLib.iGCellStyleDesign GridTextCellStyle;
private TenTec.Windows.iGridLib.iGColHdrStyleDesign GridColHdrStyle;
private TenTec.Windows.iGridLib.iGCellStyleDesign GridCheckboxCellStyle;
private System.Windows.Forms.Button btCancel;
private System.Windows.Forms.Button btOk;
private System.Windows.Forms.Button btRefresh;
private System.Windows.Forms.ContextMenuStrip cmEdit;
private System.Windows.Forms.ToolStripMenuItem Menu_Cut;
private System.Windows.Forms.ToolStripMenuItem Menu_Copy;
private System.Windows.Forms.ToolStripMenuItem Menu_Paste;
private System.Windows.Forms.ToolStripMenuItem Menu_SelectAll;
private System.Windows.Forms.ToolStripMenuItem Menu_Delete;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem6;
private System.Windows.Forms.ToolStripMenuItem Menu_FillDown;
private TenTec.Windows.iGridLib.iGCellStyleDesign GridNumberCellStyle;
private System.Windows.Forms.ToolStripSeparator toolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem Menu_Explore;
private TenTec.Windows.iGridLib.iGCellStyleDesign GridIntCellStyle;
}
}
nielz
  • nielz
  • Newbie Topic Starter
2023-08-19T09:45:56Z
I reinstalled iGrid.NET.11.0.0.Retail.exe
And now all works ok