473,322 Members | 1,566 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Advice sought. How do I add summary row (not databound) to gridview. Like weekly totals etc

Hi,

Can someone get me started by pointing me to an example or tutorial.
I am displaying some weekly sales data using the GridView. The data
shows all sales data. I would like to group it by date and have
weekly summaries. Some weeks may have many sales some, not so many.
Also, I don't want to persist this info to the database; it changes as
people add/subtract sales. So, as I render the data I need to have a
row after each week summarizing the data. It seems like it would be a
common problem.

There are DataBound and RowDataBound events. I suppose I could keep
track of data somehow and somehow add an extra row at the end of a
week. Perhaps there is a much simpler way though? Or a tutorial or
sample?

Many Thanks,

Dave,

Feb 14 '07 #1
1 1499
there a million - 1 ways to do that :-)

but without telling you all, try this:
http://www.gridviewguy.com/ArticleDe...?articleID=230

--

Bruno Alexandre
Stroby, Danmark

"a Portuguese in Denmark"
"dave" <bi*********@yahoo.comwrote in message
news:11**********************@h3g2000cwc.googlegro ups.com...
Hi,

Can someone get me started by pointing me to an example or tutorial.
I am displaying some weekly sales data using the GridView. The data
shows all sales data. I would like to group it by date and have
weekly summaries. Some weeks may have many sales some, not so many.
Also, I don't want to persist this info to the database; it changes as
people add/subtract sales. So, as I render the data I need to have a
row after each week summarizing the data. It seems like it would be a
common problem.

There are DataBound and RowDataBound events. I suppose I could keep
track of data somehow and somehow add an extra row at the end of a
week. Perhaps there is a much simpler way though? Or a tutorial or
sample?

Many Thanks,

Dave,
Feb 14 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: tfsmag | last post by:
I know how to do summary footers in a gridview... but when i try it in a paged gridview it puts a footer on every page of just the items on that page. Any suggestions on how to get it to work so...
1
by: Carlos | last post by:
Hi all, I need a field that it is both databound, and hyperlink in a gridview. That is, the value is obtained from a query, and at the same time needs to point to a new page where will be used...
5
by: maurban | last post by:
Hi there experts, I have a gridview with a couple textboxes and a dropdownlist. I'm trying to insert a default value into my database driven dropdownlist. I'm doing this in the rowdatabound...
3
by: =?Utf-8?B?Um9iZXJ0IENoYXBtYW4=?= | last post by:
Hi, Fairly easy to create one running total for a gridview but what if you have dozens of them? I have a gridview that allows bulk editing (all rows at once) and have it set up so that, on data...
3
by: mochatrpl | last post by:
I am looking for a way to make a query / report display the running average for total dollars. I have already set up a query to provide totals dollars per day from which a report graphly shows...
5
by: =?Utf-8?B?QWRhciBXZXNsZXk=?= | last post by:
Hi All, I have a GridView inside the EditItemTemplate of a FormView. Both FormView and GridView are data bound using an ObjectDataSource. When the FormView's ObjectDataSource object has a...
3
by: Mike | last post by:
On my gridview I need to a add a new row that will have totals of a previous rows. It will be something like this row1 1 2 3 4 9 10 11...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.