回复 1楼workaholic的帖子
请使用以下代码进行测试:
- private void Form1_Load(object sender, EventArgs e)
- {
- DataTable dt = new DataTable();
- dt.Columns.Add("Col1");
- dt.Columns.Add("Col2");
- dt.Columns.Add("Col3");
- dt.Rows.Add("1", "1", "1");
- dt.Rows.Add("1", "1", "1");
- this.c1FlexGrid1.DataSource = dt;
- for (int i = this.c1FlexGrid1.Rows.Count; i < 50; i++)
- {
- this.c1FlexGrid1.Rows.InsertNode(i, 0);
- }
- }
复制代码 |