W
Wayne Wengert
I have an aspx page that includes a bound data repeater. In the ItemTemplate
section I display each row from the datasource as a set of fields in a row
in a table. e.g.:
<tr>
<td align="center"><%# DataBinder.Eval(Container,"DataItem.Group") %></td>
<td align="center"><%# DataBinder.Eval(Container,"DataItem.Count") %></td>
.....
</tr>
I want to insert a special output row whenever the value of "DataItem.Group"
changes. That extra row will span all columns and display the value of
"DataItem.Group" . I tried inserting a row with the layout I want for that
header row using the code below:
<tr id=newclass bgcolor="#ffff66" height=0>
<td height=0 colspan=8>New Class</td>
</tr>
I thought I could then catch the change in the DataItem.Group in the Item
Databind Event and change the rowheight to something like 12 and fill in the
correct text.
It turns out that even though the height is set to 0 that row displays?
Any suggestions on how to accomplish this?
Wayne
section I display each row from the datasource as a set of fields in a row
in a table. e.g.:
<tr>
<td align="center"><%# DataBinder.Eval(Container,"DataItem.Group") %></td>
<td align="center"><%# DataBinder.Eval(Container,"DataItem.Count") %></td>
.....
</tr>
I want to insert a special output row whenever the value of "DataItem.Group"
changes. That extra row will span all columns and display the value of
"DataItem.Group" . I tried inserting a row with the layout I want for that
header row using the code below:
<tr id=newclass bgcolor="#ffff66" height=0>
<td height=0 colspan=8>New Class</td>
</tr>
I thought I could then catch the change in the DataItem.Group in the Item
Databind Event and change the rowheight to something like 12 and fill in the
correct text.
It turns out that even though the height is set to 0 that row displays?
Any suggestions on how to accomplish this?
Wayne