DataGrid Webcontrol

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Magnus

    DataGrid Webcontrol

    I have a datasource with items, the DataGrid is bound to this datasource
    through its DataSource property.

    Each item in the datasource is displayed ok in the DataGrid, with one row
    for each item.

    However, I would like for each item in the datasource to be displayed over
    two rows in the DataGrid, or the HTML output. My idea is to have f.ex. the
    name in the first row, and in the second row the address, zipcode etc. is to
    be displayed.

    HTML output of items in datasource:
    item1 - <table row>NAME</table row>
    <table row>ADDRESS, ZIPCODE ETC.</table row>
    item2 - <table row>NAME</table row>
    <table row>ADDRESS, ZIPCODE ETC.</table row>

    Is there a way to do this using the datagrid webcontrol??

    - Magnus


  • chanmm

    #2
    Re: DataGrid Webcontrol

    Split them into 2 tables and build a relationship.

    chanmm

    "Magnus" <no@spam.com> wrote in message news:44834a17$1 @news.broadpark .no...[color=blue]
    >I have a datasource with items, the DataGrid is bound to this datasource
    >through its DataSource property.
    >
    > Each item in the datasource is displayed ok in the DataGrid, with one row
    > for each item.
    >
    > However, I would like for each item in the datasource to be displayed over
    > two rows in the DataGrid, or the HTML output. My idea is to have f.ex. the
    > name in the first row, and in the second row the address, zipcode etc. is
    > to be displayed.
    >
    > HTML output of items in datasource:
    > item1 - <table row>NAME</table row>
    > <table row>ADDRESS, ZIPCODE ETC.</table row>
    > item2 - <table row>NAME</table row>
    > <table row>ADDRESS, ZIPCODE ETC.</table row>
    >
    > Is there a way to do this using the datagrid webcontrol??
    >
    > - Magnus
    >
    >[/color]


    Comment

    Working...