Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
21064 | Nov 2,2004 02:09 AM UTC | Nov 2,2004 06:38 AM UTC | WinForms | 2 |
![]() |
Tags: GridControl |
Panel box = new Panel();
NumericUpDown ud1 = new NumericUpDown();
NumericUpDown ud2 = new NumericUpDown();
//stack them from the left
ud1.Dock = DockStyle.Left;
ud2.Dock = DockStyle.Left;
ud1.Width = 30;
ud2.Width= 30;
ud1.BorderStyle = BorderStyle.FixedSingle;
ud2.BorderStyle = BorderStyle.FixedSingle;
box.Controls.AddRange(new Control[]{ud1, ud2});
box.BorderStyle = BorderStyle.None;
gridControl1.RowHeights[2] = 20;
gridControl1.ColWidths[2] = 64;
gridControl1[2,2].CellType = "Control";
gridControl1[2,2].Control = box;
this.Controls.Add(box);
>Panel box = new Panel();
>NumericUpDown ud1 = new NumericUpDown();
>NumericUpDown ud2 = new NumericUpDown();
>//stack them from the left
>ud1.Dock = DockStyle.Left;
>ud2.Dock = DockStyle.Left;
>ud1.Width = 30;
>ud2.Width= 30;
>ud1.BorderStyle = BorderStyle.FixedSingle;
>ud2.BorderStyle = BorderStyle.FixedSingle;
>box.Controls.AddRange(new Control[]{ud1, ud2});
>
>box.BorderStyle = BorderStyle.None;
>gridControl1.RowHeights[2] = 20;
>gridControl1.ColWidths[2] = 64;
>gridControl1[2,2].CellType = "Control";
>gridControl1[2,2].Control = box;
>this.Controls.Add(box);
>
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.