0

This is my second time working with Windows Presentation Foundation.

Here is what I have. First, I am storing a JSON List<Tuple<int,date>> object in a variable, which I will probably need to break down more into maybe a string to display the data in the XAML. The display should have a column for the int values and a column for the corresponding date values.

The problem

I am having difficulty figuring out what type of control to use to display the data, such as a listview, textbox, etc. What would be the best option for displaying the data?

The Control would eventually need a scroll bar because I will be joining this JSON array object with more of the same type, just with adjacent columns.

Let me know if this is unclear, or more information is needed.

1 Answer 1

1

You should go for DataGrid as there are Rows and Column in it and a collection can directly be provided as its datasource.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks Nikhil, that was very helpful! I found great tutorial describing DataGrid. here wpf tutorials

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.