data item with two rows in datagrid

  • Thread starter Thread starter John Hoge
  • Start date Start date
J

John Hoge

I have a datagrid displaying a number of narrow columns and one very
wide one. It would make sense from a layout perspective to have two
rows per dataitem, and to put the long descriptive field beneath all
of the short, narrow ones in one large table cell that spans multiple
columns. Is there a way to do this with a datagrid, or should I make
the table manually with a repeater control?
 
I have a datagrid displaying a number of narrow columns and one very
wide one. It would make sense from a layout perspective to have two
rows per dataitem, and to put the long descriptive field beneath all
of the short, narrow ones in one large table cell that spans multiple
columns. Is there a way to do this with a datagrid, or should I make
the table manually with a repeater control?

Using a DataGrid, I think you'd end up doing the same thing, make the
table yourself (a 1 column datagrid). Since that's the case, I'd use a
Repeater instead, unless you need other features of the DataGrid like
paging, etc.
 
Back
Top