how to display datatable columns as rows in datagrid?

B

Bob

I have a User table that stores user info (such as first name, last name,
address etc) in columns, that is, one user per row. However, when
displaying out for editing one user, I'd like it to be displayed in two
columns, field names as labels in the left column and field values in
textboxes in the right column. Could anyone suggest how this can be done
without looping through the field and adding the row in the datagrid one at
a time?

Thanks in advance
Bob
 
S

S. Justin Gengo

Bob,

Instead of using a datagrid try out using a repeater instead.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
 

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,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top