/// <summary> /// Create a DataGridColumn with special cells used for RowHeader, usually used when FixedColumns is 1 for the first column. /// </summary> /// <param name="grid"></param> /// <returns></returns> public static PingGridColumn CreateRowHeader(PingGrid grid) { return new PingGridColumn(grid, new SourceGrid.Extensions.PingGrids.Cells.Header(), new SourceGrid.Extensions.PingGrids.Cells.RowHeader(), null); }
/// <summary> /// Create a DataGridColumn with special cells used for RowHeader, usually used when FixedColumns is 1 for the first column. /// </summary> /// <param name="grid"></param> /// <returns></returns> public static PingGridColumn CreateRowHeader(PingGrid grid) { return(new PingGridColumn(grid, new SourceGrid.Extensions.PingGrids.Cells.Header(), new SourceGrid.Extensions.PingGrids.Cells.RowHeader(), null)); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.grid = new PingGrid(); this.SuspendLayout(); // // grid // this.grid.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.grid.AutoStretchColumnsToFitWidth = false; this.grid.AutoStretchRowsToFitHeight = false; this.grid.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.grid.Location = new System.Drawing.Point(12, 12); this.grid.Name = "grid"; this.grid.Size = new System.Drawing.Size(516, 368); this.grid.SpecialKeys = SourceGrid.GridSpecialKeys.Default; this.grid.TabIndex = 0; // // frmSample3 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(540, 391); this.Controls.Add(this.grid); this.Name = "frmSample3"; this.Text = "Cell Editors, Specials Cells, Formatting and Image"; this.ResumeLayout(false); }
/// <summary> /// Constructor. Create a DataGridColumn class. /// </summary> public PingGridColumn(PingGrid grid, ICellVirtual headerCell, ICellVirtual dataCell, string propertyName) : base(grid) { mPropertyName = propertyName; mHeaderCell = headerCell; mDataCell = dataCell; }
/// <summary> /// Constructor. Create a DataGridColumn class. /// </summary> public PingGridColumn(PingGrid grid, ICellVirtual headerCell, ICellVirtual dataCell, string propertyName) : base(grid) { mPropertyName = propertyName; mHeaderCell = headerCell; mDataCell = dataCell; }
public PingGridColumns(PingGrid grid) : base(grid) { }
public PingGridRows(PingGrid grid) : base(grid) { mHeaderHeight = grid.DefaultHeight; }
/// <summary> /// Constructor. Create a DataGridColumn class. /// </summary> /// <param name="grid"></param> public PingGridColumn(PingGrid grid) : base(grid) { mHeaderCell = new SourceGrid.Extensions.PingGrids.Cells.ColumnHeader(string.Empty); mDataCell = new SourceGrid.Extensions.PingGrids.Cells.Cell(); }
public PingGridColumns(PingGrid grid) : base(grid) { }
public PingGridRows(PingGrid grid) : base(grid) { mHeaderHeight = grid.DefaultHeight; }
/// <summary> /// Constructor. Create a DataGridColumn class. /// </summary> /// <param name="grid"></param> public PingGridColumn(PingGrid grid) : base(grid) { mHeaderCell = new SourceGrid.Extensions.PingGrids.Cells.ColumnHeader(string.Empty); mDataCell = new SourceGrid.Extensions.PingGrids.Cells.Cell(); }