如何在Show List中实现几个块。奏鸣曲管理员

时间:2016-11-02 16:09:04

标签: sonata-admin

如何在Sonata Admin Bundle的Show List中实现几个块?

a few blocks in Show List

我不是指Tabs。可以在没有自定义模板的情况下完成吗?

1 个答案:

答案 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}