Re: GridView Totals Row as First Row



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" <walt.zydhek@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:%23RL5HsLOHHA.4928@xxxxxxxxxxxxxxxxxxxxxxx
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




.



Relevant Pages

  • Re: Rephrase: How can I get total for detail subreports in group level header?
    ... >> data values to appear in the formatted report. ... I have the family name and their ID number in the header along ... >with total counts or value totals shown on the far right. ... Since your expressions can only work with a single detail in ...
    (microsoft.public.access.reports)
  • Re: Totals row at btm
    ... Highlight your existing dataset (including header row) and select ... at the bottom of the current list. ... the syntax of the SUBTOTAL formula. ... Format the next row to be just 4 points high, then put your totals ...
    (microsoft.public.excel)
  • Re: Rephrase: How can I get total for detail subreports in group level header?
    ... > calculation in either a group header or footer unless each ... > data values to appear in the formatted report. ... I have the family name and their ID number in the header along ... with total counts or value totals shown on the far right. ...
    (microsoft.public.access.reports)
  • Re: Help in creating a formula
    ... Place your totals into table header, ... Define named ranges like ... Now, when you filter some data using autofilter feature, totals for filtered ...
    (microsoft.public.excel.misc)
  • Re: Background colour of column in datagrid
    ... the coding necessary just to alter the background color ... of a column header. ... >> header cells also and I don't think the tips cover ...
    (microsoft.public.dotnet.languages.vb)

Loading