How to display gridview data as two columns

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Blacky
    New Member
    • Jan 2009
    • 40

    How to display gridview data as two columns

    Hi,

    I have a gridview in a webform. When the page is laoded the data from xml is binded to gridview. Say i have twenty product details in xml. Now i have written code to bind those details with gridview its working fine.
    i want to display like this, for exmaple if there are twenty records i want to display ten datas on left and ten datas in right, Please find the sample below,
    Records in dataset,

    a 1
    b 2
    c 2
    d 3


    this is the way i want to display in gridview,


    a 1 c 2
    b 2 d 3

    Please let me know asap,
    Thanks in advance
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    I suggest using 2 GridViews.
    Create 2 data sources by splitting the original datasource in half...then set the first GridView to the first-half -datasource and the second GridView to the second-half-datasource.

    Comment

    Working...