Manipulating data in sql / asp.net / c# - how?

Posted by SLC on Stack Overflow See other posts from Stack Overflow or by SLC
Published on 2009-11-10T12:01:56Z Indexed on 2010/03/12 23:07 UTC
Read the original article Hit count: 129

Filed under:
|

Not sure how to word the question...

Basically, so far all my SQL stuff has been stored procedures and dumped into a gridview. The odd case where I had to perform an action based on a value (such as highlighting a row green if a certain value was true) were done as the gridview was rendering in one of the overrides.

Now however I have to do something far more complicated - pull three sets of data down, run a series of checks on all three and some date related checks and stuff, then populate a gridview with some of the items.

In logic terms, I want to run three queries, and store the lists of results (presumably in Lists?) then run some logic, then populate the gridview.

Specifically what I don't know how to do is:

  • Best way of pulling the data, and putting it into a List or other datastructure that lets me easily run through it, and retrieve data based on column (myList.age, or more likely, myList["Age"]).

  • One I have compared the data, I assume I create a new list that will be put into the gridview... how do I put the contents of a list INTO a gridview? How would I add other stuff such as buttons or checkboxes at the same time?

Any nudge in the right direction would be appreciated! Particularly doing cool stuff with lists and sql (if there is anything cool you can do with them)

© Stack Overflow or respective owner

Related posts about sql

Related posts about ASP.NET