how to i place grid view data on more than one line

Last post 07-30-2008 8:05 AM by johram. 3 replies.

Sort Posts:

  • how to i place grid view data on more than one line

    07-30-2008, 7:31 AM
    • Member
      29 point Member
    • chukwa
    • Member since 07-29-2008, 12:07 PM
    • Posts 82

    currently gridview all pops up on the same line

     name     address     phone number    country

    any way to space it out on say two or three lines with gap?

     say

     

    name               address

    phonenumber

    country

    Chu = Noob, please help
  • Re: how to i place grid view data on more than one line

    07-30-2008, 8:02 AM
    • All-Star
      90,829 point All-Star
    • SGWellens
    • Member since 01-02-2007, 9:27 PM
    • Twin Cities, MN
    • Posts 7,412
    • Moderator
      TrustedFriends-MVPs

    A DataList or a ListView will give you more control (with more work, of course) over the presentation layout.

     

    Steve Wellens

    My blog
  • Re: how to i place grid view data on more than one line

    07-30-2008, 8:04 AM
    • All-Star
      28,218 point All-Star
    • johram
    • Member since 06-13-2006, 6:36 AM
    • Sweden
    • Posts 3,543
    • Moderator

    It is uneccesary complicated to force a GridView into this behavior (if possible). You're better off using a DataList or a Repeater, where you have more control over formatting - at the cost of sorting and paging which will require some more work than with the GridView. See previous post http://forums.asp.net/t/1192031.aspx

    If this post was useful to you, please mark it as answer. Thank you!
  • Re: how to i place grid view data on more than one line

    07-30-2008, 8:05 AM
    Answer
    • All-Star
      28,218 point All-Star
    • johram
    • Member since 06-13-2006, 6:36 AM
    • Sweden
    • Posts 3,543
    • Moderator
    I'll just add to SGWellens post that the ListView control requires .NET 3.5
    If this post was useful to you, please mark it as answer. Thank you!
Page 1 of 1 (4 items)