答案 0 :(得分:0)
还不知道如何垂直地,但横向地执行此操作:
var flowsList = flows.Where(a => a.Guid.Equals(account_guid)).ToList();
Flows fl = new Flows(new Guid().ToString(), "null", account_guid, "", "11", "test", 0, 0, 0);
flowsList.Insert(flows.Count, fl);
DataGridView dg = new DataGridView();
dg.DataSource = flowsList;
this.Controls.Add(dg);//I've already seen the data in flowsList for form.
Console.WriteLine(dg.Columns.Count); //Result =====> 0
Console.WriteLine(dg.Parent); //Result =====> TabPage: {page1}