How can we get Number of rows Present in Listview?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.