private void Form1_Load(object sender, System.EventArgs e) { // create the grid C1.Win.C1Sizer.Grid g = this.c1Sizer1.Grid; g.Rows.Count = 8; g.Columns.Count = 5; }
private void Form1_Load(object sender, System.EventArgs e) { // create the grid C1.Win.C1Sizer.Grid g = this.c1Sizer1.Grid; g.Rows.Count = 8; g.Columns.Count = 5; // add some controls to it for (int r = 0; r < g.Rows.Count; r++) { for (int c = 0; c < g.Columns.Count; c++) { // create a new button Button btn = new Button(); btn.Text = "Button " + this.c1Sizer1.Controls.Count.ToString(); // add it to the sizer this.c1Sizer1.AddControl(btn, r, c); } } }