日期:2014-05-17 浏览次数:20774 次
private int count = 0; private void button1_Click(object sender, EventArgs e) { DataGridView dgv = new DataGridView(); dgv.Size = new System.Drawing.Size(100, 100); dgv.Location = new System.Drawing.Point(1, 1+(count*100)); count += 1; this.Controls.Add(dgv); }