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.
Regards
RAJIV
Hutt wrote:
Subtotals in Gridview
22-Jul-08
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
Previous Posts In This Thread:
Subtotals in Gridview
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
The way to do this sort of things is to use a repeater or a listview with
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 <tr> will be used as
a regular row. The second <tr> will 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 <tr> for the detected
last items
--
Eliyahu Goldin
Software Develope
Microsoft MVP [ASP.NET
http://msmvps.com/blogs/egoldi
http://usableasp.ne
I failed to mention I am using a nested gridview in application.
I failed to mention I am using a nested gridview in application. The second
gridview shows the details of the master gridview where I want to display
totals. My goal is to show hierarchial data with subtotals at major
intervals. Will the repeater accomplish this task? Thanks
--
Hutt
:
Submitted via EggHeadCafe - Software Developer Portal of Choice
WPF Reflection Effect
http://www.eggheadcafe.com/tutorial...-beab-49bd76e20b9b/wpf-reflection-effect.aspx