troubleshooting Question

access a single value from list

Avatar of Justin
JustinFlag for United States of America asked on
2 Comments1 Solution149 ViewsLast Modified:
I am very new to C#, I hope this is a simple question but I have not been able to find the answer, Thank you for any help you are able to provide.

I have a list of items pulled from a database.

public List<ListModel> my List

This is pretty much 3 columns of numbers

Header1 Header 2 Header 3
1               2               2
1               2               2
3               3               1
1               2               3

I would like to place those values into a html table in various cells. I cant build the table in a foreach as the values may need to be spread out in a non repeating manor .

In other languages you could access an array by myArray [1][2] , How can this be done in in a list I am passing from a controller to a view?

Thank you
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros