如何将空行添加到绑定到List 的转发器?

时间:2021-09-03 20:46:31

Is this possible? Using VB.NET.

这可能吗?使用VB.NET。

Can I do it in the footer maybe? Would that be the best way? Bind the footer to a datatable and throw some blank rows in there?

我可以在页脚中执行此操作吗?那会是最好的方式吗?将页脚绑定到数据表并在其中抛出一些空行?

2 个解决方案

#1


I did this by dynaically adding HTML below the repeater, I subtracted by 15 - repeater.items.count then iterated through and added rows.

我通过在转发器下面动态添加HTML来做到这一点,我减去15 - repeater.items.count然后迭代并添加行。

#2


You could do that or.... You could look through and set specific ones to have "margin-bottom: 25px;".

你可以这样做或....你可以通过查看并设置具体的“margin-bottom:25px;”。

#1


I did this by dynaically adding HTML below the repeater, I subtracted by 15 - repeater.items.count then iterated through and added rows.

我通过在转发器下面动态添加HTML来做到这一点,我减去15 - repeater.items.count然后迭代并添加行。

#2


You could do that or.... You could look through and set specific ones to have "margin-bottom: 25px;".

你可以这样做或....你可以通过查看并设置具体的“margin-bottom:25px;”。