datagrid Column grand total
Trevor DeVore
lists at mangomultimedia.com
Tue May 5 09:27:26 EDT 2009
On May 5, 2009, at 3:36 AM, Josep wrote:
> Yes, I can with this way or I can record any change in "on FillIn" and
> update a t_GrandTotal... go to try it... I think that with this way
> the
> operation will be automatic...
Andre's example will work great. This is a common question so I also
created a lesson that shows how to create a custom property for your
data grid that returns aggregate values. The example uses the dgData
property which will be faster than using the dgText property.
<http://revolution.screenstepslive.com/spaces/revolution_tools/manuals/datagrid/lessons/4170-How-Do-I-Get-Aggregate-Values-for-Columns-
>
You should note that adding values in "FillInData" won't provide
accurate information since FillInData is called multiple times for
each row as you scroll through the data in the data grid.
Regards,
--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Developer Resources: http://revolution.bluemangolearning.com
More information about the use-livecode
mailing list