Hi I am trying to create 3 columns in a ListView.
I read this but I want to set the data in each column programtically in C#:
how to display data in rows and columns XAML windows 8
For example I want artist name, song name and artist.
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.
Assuming you have something like this to store your data:
And a ListView with a DataTemplate defined (as in the link you provided), just give your ListView a name:
Then, from the code-behind, it’s just a case of: