Exemplo n.º 1
0
		/// <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);
		}
Exemplo n.º 2
0
 /// <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));
 }
Exemplo n.º 3
0
		/// <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);

		}
Exemplo n.º 4
0
 /// <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;
 }
Exemplo n.º 5
0
		/// <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;
		}
Exemplo n.º 6
0
 public PingGridColumns(PingGrid grid)
     : base(grid)
 {
 }
Exemplo n.º 7
0
 public PingGridRows(PingGrid grid)
     : base(grid)
 {
     mHeaderHeight = grid.DefaultHeight;
 }
Exemplo n.º 8
0
 /// <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();
 }
Exemplo n.º 9
0
		public PingGridColumns(PingGrid grid)
			: base(grid)
		{
		}
Exemplo n.º 10
0
		public PingGridRows(PingGrid grid)
			: base(grid)
		{
			mHeaderHeight = grid.DefaultHeight;
		}
Exemplo n.º 11
0
		/// <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();
		}