Groups | Blog | Home
all groups > c# > june 2006 >

c# : DataGrid Webcontrol



Magnus
6/4/2006 11:01:20 PM
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
6/6/2006 12:06:49 AM
Split them into 2 tables and build a relationship.

chanmm

[quoted text, click to view]

AddThis Social Bookmark Button