0

I'm new to ASP.net,C#.

I'm trying to NOT use any database and hence running into issue.

I have a small application that will generate the questions and then stores them along with answers in a 2 dimensional array. At the end, I want to display the contents in a tabular format on the same page.

When I tried to use GridView , it returns an error that the "data source is not a one dimensional array".

What is the best control that allows me to bind the 2D array as the datasource and then displays it on that page.

1 Answer 1

2

I recommend using datatables instead of arrays. Then use a datagrid.

http://www.issociate.de/board/goto/880762/Binding_Multidimensional_Array_to_DataGrid.html

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

1 Comment

Awesome!!. This solved my problem. I have used GridView though. Changing to datatables helped. Thank You Very much...

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.