How can we get Number of rows Present in Listview?
2 Answers
Couldn't you just use ListView.Items.Count?
3 Comments
Well, you see. When you bind a list view to some sort of collection (preferably some sort of observable collection) with some sort of type. You can add/remove.
But you also have the functionality to say observablecollection.count.
Now if you are adding the items inside the XAML. a quick and easy way to access it is.
x:Name="name of the list" then in the code behind say (name of the list).count.
That should give you access within the code behind, or if you don't want to do it in the code behind. You will need some sort of window dictionary.
and you can access the (name of the list) through your dictionary.