Пример #1
0
 private void StyledDataGridView_ColumnWidthChanged(object sender, System.Windows.Forms.DataGridViewColumnEventArgs e)
 {
     if (ColumnSettingsManager != null)
     {
         ColumnSettingsManager.ColumnWidthChanged(this, e);
     }
 }
Пример #2
0
 void System.ComponentModel.ISupportInitialize.EndInit()
 {
     System.Windows.Forms.ToolStripMenuItem toolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     toolStripMenuItem.Name      = "deleteSelectedRowsToolStripMenuItem";
     toolStripMenuItem.Size      = new System.Drawing.Size(178, 22);
     toolStripMenuItem.Text      = "Delete Selected Rows";
     toolStripMenuItem.Click    += new System.EventHandler(deleteSelectedRowsToolStripMenuItem_Click);
     contextMenuStrip1           = new System.Windows.Forms.ContextMenuStrip();
     contextMenuStrip1.BackColor = System.Drawing.Color.FromArgb(224, 224, 224);
     System.Windows.Forms.ToolStripItem[] toolStripItemArr = new System.Windows.Forms.ToolStripItem[] { toolStripMenuItem };
     // contextMenuStrip1.Items.AddRange(toolStripItemArr);
     contextMenuStrip1.Name                  = "contextMenuStrip1";
     contextMenuStrip1.RenderMode            = System.Windows.Forms.ToolStripRenderMode.System;
     contextMenuStrip1.Size                  = new System.Drawing.Size(179, 48);
     columnHeaderContextMenuStrip            = new System.Windows.Forms.ContextMenuStrip();
     columnHeaderContextMenuStrip.BackColor  = System.Drawing.Color.FromArgb(224, 224, 224);
     columnHeaderContextMenuStrip.Name       = "columnHeaderContextMenuStrip";
     columnHeaderContextMenuStrip.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
     columnHeaderContextMenuStrip.Size       = new System.Drawing.Size(174, 32);
     if (AllowUserToDeleteRows || _HasCustomContextMenuItems)
     {
         ContextMenuStrip = contextMenuStrip1;
     }
     else
     {
         ContextMenuStrip = null;
     }
     rememberedAllowAddRow = AllowUserToAddRows;
     RefreshCustomEnabled();
     if (ColumnSettingsManager == null)
     {
         ColumnSettingsManager = Oranikle.Studio.Controls.StyledDataGridView.DefaultColumnSettingsManager;
     }
     if (ColumnSettingsManager != null)
     {
         ColumnSettingsManager.DgvEndInit(this);
     }
     ColumnWidthChanged += new System.Windows.Forms.DataGridViewColumnEventHandler(StyledDataGridView_ColumnWidthChanged);
 }