这家写好的三层,那家看到了也要模仿(__),要实现无限循环嵌套,并有增删结构功能,多重变化,,,苦逼啊!
简单写了三天,就一个无限嵌套的实现了,效果如下
不喜勿喷,闲语绕道,谢谢!!!
不喜勿喷,闲语绕道,谢谢!!!
不喜勿喷,闲语绕道,谢谢!!!
前端页面
循环绑定显示如下
测试数据源为:
dtsource1.Rows.Add(new object[] { 1, 0, 0, "NAME1" });
dtsource1.Rows.Add(new object[] { 2, 1, 1, "NAME1" });
dtsource1.Rows.Add(new object[] { 3, 2, 2, "NAME1" });
dtsource1.Rows.Add(new object[] { 4, 3, 3, "NAME1" });
dtsource1.Rows.Add(new object[] { 5, 4, 4, "NAME1" });
dtsource1.Rows.Add(new object[] { 6, 5, 5, "NAME1" });
dtsource1.Rows.Add(new object[] { 7, 0, 0, "NAME1" });
dtsource1.Rows.Add(new object[] { 8, 1, 7, "NAME1" });
dtsource1.Rows.Add(new object[] { 9, 1, 7, "NAME1" });
dtsource1.Rows.Add(new object[] { 10, 2, 9, "NAME1" });
dtsource1.Rows.Add(new object[] { 11, 3, 10, "NAME1" });
dtsource1.Rows.Add(new object[] { 12, 4, 11, "NAME1" });
dtsource1.Rows.Add(new object[] { 13, 4, 11, "NAME1" });
前后台代码还在整理,做好后再更新出来