Formatting result from a database query

M

Mathias

From my database query I get the following:

Text Number
Albert 12
Albert 14
Albert 16
Brian 20
Brian 21
Brian 22

Now I'd like to represent the data as:

Albert 12 14 16
Brian 20 21 22

I've looked at repeaters, data sets, data readers but I can't figure
out how to go about it. Preferably I'd like to represent the data in a
GridView. Can anyone please guide me in the right direction? :)
 
E

Eliyahu Goldin

The easiest solution is to build programmatically a new datatable containing
one row per name out of the original result set and databind the gridview to
the new table.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top