Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > GridView Totals Row as First Row

Reply
Thread Tools

GridView Totals Row as First Row

 
 
Walt Zydhek
Guest
Posts: n/a
 
      01-15-2007
I have seen a number of articles about adding a totals row to the GridView
control. But I have only seen methods for displaying the totals row in the
Footer.

Is there a way to display the totals in the FIRST row of the GridView, along
with a custom style for that row?

Or how can a Header be modified to show two rows (the Header cell and a
Totals Cell)?

I have a project that requires the Column Headers on the first row, the
Column Totals for 8 columns, then the data rows.

Any assistance would be appreciated.

-Walt Zydhek


 
Reply With Quote
 
 
 
 
Alvin Bruney [MVP]
Guest
Posts: n/a
 
      01-17-2007
You can put the totals row anywhere you want. Header cells can take text
boxes that can be formatted to look like rows so just do an add control to
the header. Totals as the first row is usually a bad idea because special
code needs to be done to handle paging, sorting etc. Esposito had an article
entitled freeze the header scroll the grid, you can use that as a start
because that is really what you are asking for functionally.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and
www.lulu.com/owc

"Walt Zydhek" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
>I have seen a number of articles about adding a totals row to the GridView
>control. But I have only seen methods for displaying the totals row in the
>Footer.
>
> Is there a way to display the totals in the FIRST row of the GridView,
> along with a custom style for that row?
>
> Or how can a Header be modified to show two rows (the Header cell and a
> Totals Cell)?
>
> I have a project that requires the Column Headers on the first row, the
> Column Totals for 8 columns, then the data rows.
>
> Any assistance would be appreciated.
>
> -Walt Zydhek
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
add new row to gridview with totals Mike ASP .Net 3 02-21-2008 03:27 PM
Running totals in gridview (when you have many totals required) =?Utf-8?B?Um9iZXJ0IENoYXBtYW4=?= ASP .Net 3 02-16-2007 12:03 PM
Advice sought. How do I add summary row (not databound) to gridview. Like weekly totals etc dave ASP .Net 1 02-14-2007 08:15 PM
add a new row with totals - gridview John ASP .Net Datagrid Control 5 06-13-2006 01:50 PM
ok I can do a totals row but how about a percentage row after each data row D ASP .Net Datagrid Control 0 05-23-2005 04:10 PM



Advertisments