Home All Groups Group Topic Archive Search About
Author
11 Mar 2006 8:55 PM
Marcin
Hello!

How to I can create a summary row in DataGrid in Visual C# .NET or VB.NET?

In ASP.NET available Footer for DataGrid, but in VC# I can't find this.

--

with regards,
Marcin

Author
11 Mar 2006 9:13 PM
Michael Nemtsev
Hello Marcin,

There is a problem with this, general solution is to use 3rd party grid.
BTW, you can use several textbox under your grid control, to show summary
info

M> Hello!
M>
M> How to I can create a summary row in DataGrid in Visual C# .NET or
M> VB.NET?
M>
M> In ASP.NET available Footer for DataGrid, but in VC# I can't find
M> this.
M>
---
WBR,
Michael  Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Are all your drivers up to date? click for free checkup

Author
12 Mar 2006 8:07 PM
Otis Mukinfus
On Sat, 11 Mar 2006 21:13:35 +0000 (UTC), Michael Nemtsev <nemt***@msn.com>
wrote:

Show quoteHide quote
>Hello Marcin,
>
>There is a problem with this, general solution is to use 3rd party grid.
>BTW, you can use several textbox under your grid control, to show summary
>info
>
>M> Hello!
>M>
>M> How to I can create a summary row in DataGrid in Visual C# .NET or
>M> VB.NET?
>M>
>M> In ASP.NET available Footer for DataGrid, but in VC# I can't find
>M> this.
>M>
>---
>WBR,
>Michael  Nemtsev :: blog: http://spaces.msn.com/laflour
>
>"At times one remains faithful to a cause only because its opponents do not
>cease to be insipid." (c) Friedrich Nietzsche
>
You might also loop through the rows and get the totals of the columns you want
and add a last row with the totals.  Cumbersome, but doable.  Michael's answer
is probably bets if you don't mind using a third party control.

Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com

Bookmark and Share