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.
精彩评论