ListView - Maximum # of rows
-
Hiya all, I was wondering if someone could tell me whether i can define the maximum number of rows for a ListView. I am using the ListView in detail mode and would like a maximum of 1000 rows. When i insert the 1001 row i would like the first row inserted to be deleted. thanks in advance
-
Hiya all, I was wondering if someone could tell me whether i can define the maximum number of rows for a ListView. I am using the ListView in detail mode and would like a maximum of 1000 rows. When i insert the 1001 row i would like the first row inserted to be deleted. thanks in advance
ahh i think i got it! When i add a new row to the list control i have also added some code that checks the number of rows currently in the list. If its = to a 1000 then i delete the 1000th row! Code looks something similar to this: if (UpdateList.Items.Count > 10) UpdateList.Items.RemoveAt(10);