Click here to Skip to main content
15,896,726 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi All,
I am using listView1 in C# windowsCE application my intention is to limit the amount of records to load in a listview1 upto 3. How can make it possible ?


Thanks & Regards
Indrajit Dasgupta
Posted
Updated 24-Dec-13 20:25pm
v2
Comments
Peter Leow 25-Dec-13 2:23am    
There was nothing in your original question that mentions ce. What you do not tell we do not know.

1 solution

Why not just limit the number of items programmatically. ok if you want really need this you can try this code.


C#
if (Listview.Items.Count > 10)
ListView.Items.RemoveAt(10)


jsb
 
Share this answer
 
v2

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