> I have a gridview control that is returning rows where for 1 column
> the value is usually the same. Occasionally the last couple of rows
[quoted text clipped - 23 lines]
> The above diagram probably won't look too good if your reader doesn't
> have a monospaced font - sorry for that!
What you want is called grouping.
Search Google for "gridview grouping", that will give you some samples how
to do it.
Mostly, it is done just by blanking out the doubles, not by merging the
cells.
Merging cells can be done easily, I think. Gridview cells inherit from
TableCell controls, which have a RowSpan property that you can set.
This also requires removing the cells below the one with the extended
rowspan (row.Cells.RemoveAt(0) or something).
Jos
Andrew Shaw - 24 Feb 2008 03:22 GMT
>> I have a gridview control that is returning rows where for 1 column
>> the value is usually the same. Occasionally the last couple of rows
[quoted text clipped - 37 lines]
>
> Jos
Excellent - thanks very much for the tips - I'll go poke Google now!
Andrew