GridView Totals Row as First Row

W

Walt Zydhek

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
 
A

Alvin Bruney [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top