Hi,

You can try doing something like what has been done here:

http://blogs.adobe.com/aharui/2007/04/datagrid_footers.html

In this case, the average has been calculated. You just need to modify the
code to give you just the sum of the fields.

Regards,
Venkat

On Tue, Sep 2, 2008 at 6:26 PM, harish <[EMAIL PROTECTED]> wrote:

>
> Dear dudes,
>
>   I want to get the total of my datas.(ie)
>
>      5000
>      2000
>      3000
>    -----------
>    10000 [ need to didplay this one (here the datas from the
> webservice result.and it need to sum while it will running.)
>   -----------
>
> Now clear??
>
> Yes anand. U mean ..  we need to add another one grid which has
> rowcount=1 ; below to the previous  grid?
> am i right on your way? or else will u please explain a bit.How  can
> we add a dummy row in the grid?
>
>
>
>
>
> On Sep 2, 5:33 pm, "<mx:AnandVardhan/>" <[EMAIL PROTECTED]>
> wrote:
> > I did not get your question. you want to show the total number of rows
> > or there is some computational value which you want to show.
> >
> > If such then you need to create an advancedDataGrid which has a
> > summary crow .. or else hack the ordinary DataGrid. The easiest way is
> > to add a dummy row in the datagrid at the very bottom having only one
> > column with value and i.e. your computed value.
> >
> > Anand
> >
> > On 2 Sep, 17:15, "nimesh Nanda" <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > HI,
> > >       You can get the total row of grid view .
> >
> > >  private var DotNetData:ArrayCollection;
> >
> > > private function DataHandler(event:ResultEvent):void
> > > {
> > >    DotNetData=event.result.Tables.Table.Rows;
> >
> > > }
> >
> > > Regards,
> > > Nimesh Nanda
> >
> > > On Tue, Sep 2, 2008 at 5:17 PM, harish <[EMAIL PROTECTED]> wrote:
> >
> > > > Precious all,
> >
> > > > I am trying to connect to a web service which so far has gone OK. And
> > > > got answer in the datagrid ok. Now I want to display the total value
> > > > of one column at the last row of the grid. Any idea please.
> >
> > > > Here is my source.
> > > > answer=(event.result.Tables["DB"].Rows);
> > > > var ans:Array=ArrayUtil.toArray(answer);
> > > > myDg.dataprovider=answer;
> >
> > > > regards,
> > > > harish.- Hide quoted text -
> >
> > - Show quoted text -
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to