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

Discussion in 'ASP .Net' started by Jack, May 21, 2006.

  1. Jack

    Jack Guest

    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.
    Jack, May 21, 2006
    #1
    1. Advertising

  2. 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

    "Jack" <> wrote in message
    news:...
    > 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.
    >
    >
    Eliyahu Goldin, May 21, 2006
    #2
    1. Advertising

  3. Jack

    Jack Guest

    Thanks. It worked like a treat!

    Jack.

    "Eliyahu Goldin" <> wrote in message
    news:...
    > 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
    >
    > "Jack" <> wrote in message
    > news:...
    >> 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.
    >>
    >>

    >
    >
    Jack, May 24, 2006
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Luca Fini

    help on how to arrange python code

    Luca Fini, Oct 18, 2003, in forum: Python
    Replies:
    0
    Views:
    410
    Luca Fini
    Oct 18, 2003
  2. PraVeeN

    Gridview columns re-arrange

    PraVeeN, Dec 8, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    378
    PraVeeN
    Dec 8, 2006
  3. Kent
    Replies:
    6
    Views:
    342
    Terry Reedy
    Mar 28, 2009
  4. Knut Krueger
    Replies:
    14
    Views:
    818
    dorayme
    Jun 18, 2009
  5. Emile van Sebille

    Re: Arrange files according to a text file

    Emile van Sebille, Aug 27, 2011, in forum: Python
    Replies:
    3
    Views:
    237
    Emile van Sebille
    Aug 28, 2011
Loading...

Share This Page