Home All Groups Group Topic Archive Search About

column subtotals in a datagrid

Author
16 Jan 2006 4:09 AM
latin & geek via DotNetMonster.com
hi.

ive been searching high and low for help with how to show subtotals for each
column in a datagrid. so far ive only seen help for asp.net or c#.....  can
someone please help for VB.NET? im a beginner and do not know VB.NET well,
let alone how to convert asp.net to vb!!

thanks very much


Author
16 Jan 2006 6:58 AM
Lucky
hi,
  once i had also searched for such thing on the net but i didnt find
any material on this subject.
   my conclusion for your problem is that, there is no method provided
for sub totaling in MS DataGrid. you have to manually write code for
such functionality.
it is true that it is available for web based application but for the
desktop application Microsoft has not provided such functionality.

Lucky
Author
16 Jan 2006 8:44 AM
latin & geek via DotNetMonster.com
oh DRAT MS! sigh.

thanks neway :)


Lucky wrote:
Show quoteHide quote
>hi,
>  once i had also searched for such thing on the net but i didnt find
>any material on this subject.
>   my conclusion for your problem is that, there is no method provided
>for sub totaling in MS DataGrid. you have to manually write code for
>such functionality.
>it is true that it is available for web based application but for the
>desktop application Microsoft has not provided such functionality.
>
>Lucky

Author
16 Jan 2006 7:48 AM
Cor Ligthert [MVP]
Latin,

A datagrid is an input/update/delete control.

Have a look at Crystal Reports

http://www.vb-tips.com/default.aspx?ID=68888abf-f137-45d1-8a81-e779bfb411c5

I hope this helps,

Cor
Author
16 Jan 2006 8:46 AM
latin & geek via DotNetMonster.com
thanks awfully for the link! i had given up hope.... i just one question
though. er, i dont  *think* i have this crystal reports business... ive
hunted right through my library to add reference.. but its not there! am i
looking in the wrong place or is this a seperate program please?

cheers
L&G

Cor Ligthert [MVP] wrote:
>Latin,
>
>A datagrid is an input/update/delete control.
>
>Have a look at Crystal Reports
>
>http://www.vb-tips.com/default.aspx?ID=68888abf-f137-45d1-8a81-e779bfb411c5
>
>I hope this helps,
>
>Cor

Author
16 Jan 2006 8:53 AM
Cor Ligthert [MVP]
Latin,

For Crystal Reports it is important which which version and inside that
which version you are using.

:-))

Version 2002 professional -- version 2005 Express etc

Cor
Author
16 Jan 2006 9:32 AM
latin & geek via DotNetMonster.com
*blush*  i shdve guessed i needed to mention that! - 2002 standard.

( *waiting for next miracle* ;-) )

Author
16 Jan 2006 9:36 AM
latin & geek via DotNetMonster.com
oh ! much happiness - ive cheated and used a simple for loop to add up the
needed figures so that is taken care of :D thanks... but if i may trouble you
again, could you please have a look at this? -

http://www.dotnetmonster.com/Uwe/Forum.aspx/dotnet-vb/38180/displaying-child-table-in-datagrid


i seem to be visual-basic-ally challenged!!

Author
16 Jan 2006 10:27 AM
Cor Ligthert [MVP]
Latin,

> *blush*  i shdve guessed i needed to mention that! - 2002 standard.
>
> ( *waiting for next miracle* ;-) )
>
Than it was as far as I know not there.

Cor
Author
16 Jan 2006 10:59 AM
latin & geek via DotNetMonster.com
ok.. .thanks very much :)