Click here to Skip to main content
15,884,237 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I bind data source to list view control and want to display one row at a time. How is it possible, I have all ready set GroupItemCount property to 1, but list view displaying all the rows one by one in list..
Posted

GroupItemCount property is for setting the number of Items per Group. If you want to show only one item, you just bind one item to gridview or you can go for paging with displaying one item at a time.
 
Share this answer
 
Comments
Dalek Dave 18-Oct-10 3:37am    
Good Answer
Brij 18-Oct-10 8:53am    
Thanks Dalek.
Try GridView paging (and set PageSize = 1) :)
 
Share this answer
 
I am working with ListView not GridView. I am creating an online examination page and want to show one question with its options in ListView, and want to show another question on next button click. But, the ListView showing all rows one by one just like list.
 
Share this answer
 
Comments
Nathan St 18-Oct-10 2:17am    
That's why it's called a LIST view... you want GridView.
amit.aanmol 18-Oct-10 2:45am    
ok.. so i cant display only one record at a time in listview..
I know this is an old post but you can use the PageSize="1" to display 1 record at a time in ListView
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900