开发者

How can I get numbers of columns in repeater

开发者 https://www.devze.com 2023-02-17 01:37 出处:网络
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

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

精彩评论

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