开发者

How can I get numbers of columns in repeater

How can I get numbers of columns in repeater.

int columnsCount = rp.Items.Count;

This re开发者_StackOverflow社区turns 1 but I have 4 columns.


A repeater has no notion of columns. You can consider it as a simple foreach loop in your view. When you query rp.Items.Count this returns the number of rows you have in the dataset that this repeater is bound to.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜