The way to do this sort of things is to use a repeater or a listview with
ItemTemplate made out of two html table rows. The first <trwill be used as
a regular row. The second <trwill contain subtotals. It will be hidden for
all items (rows) but the last item for each Type. You will need to handle
either ItemDataBound or PreRender event to calculate the subtotals, detect
the last item for every Type and show the subtotal <trfor the detected
last items.
--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin http://usableasp.net
"Hutty" <Hu***@discussions.microsoft.comwrote in message
news:6C**********************************@microsof t.com...
>I have searched the net but have been unable to find a solution to
subtotaling in a gridview. I have a gridview that is bounded to
sqldatasource
where I would like to subtotal rows throughout the gridview based on
column
value "Type". I am using VB.NET. Thanks.
--
Hutty