Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Datagrid Control (http://www.velocityreviews.com/forums/f60-asp-net-datagrid-control.html)
-   -   GridView Totals Row as First Row (http://www.velocityreviews.com/forums/t763111-gridview-totals-row-as-first-row.html)

Walt Zydhek 01-15-2007 03:37 PM

GridView Totals Row as First Row
 
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



Alvin Bruney [MVP] 01-17-2007 04:20 AM

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@thinkpartnership.com> wrote in message
news:%23RL5HsLOHHA.4928@TK2MSFTNGP06.phx.gbl...
>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
>
>





All times are GMT. The time now is 02:04 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.