Possible to arrange the fields for each record of a GridView?

J

Jack

Hello,

I've got the Gridview control working displaying two fields from my
database, but the fields are displayed horizontally next to each other. How
can I display my 'Text' underneath my image?

I've looked at the propertires of the columns (via the 'Edit Columns'
smart-tag feature) but can't seem to find anything here.

Thank-you in advance.

Jack.
 
E

Eliyahu Goldin

Jack,

You need to use a template column. Make an ItemTemplate with an html layout
for an image and a text element. Databind the image element to the image
field and the text element to the text field.

Eliyahu
 
J

Jack

Thanks. It worked like a treat!

Jack.

Eliyahu Goldin said:
Jack,

You need to use a template column. Make an ItemTemplate with an html
layout for an image and a text element. Databind the image element to the
image field and the text element to the text field.

Eliyahu
 

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,774
Messages
2,569,596
Members
45,130
Latest member
MitchellTe
Top