[dba-VB] VB2005 DatagridView with unbound calculated fields

Charlotte Foust cfoust at infostatsystems.com
Thu Jul 31 10:30:51 CDT 2008


I'm not sure I understand.  You want the subtotal to appear on the
parent form, not in the parent grid, right?  That should only take
creating a dataset (or reference the datasource of the child grid and
cast it as the appropriate object type) and then doing a compute on it
to sum the value of the column in the child.  You'd raise an event from
the child grid if the value changed and a handler in the parent form
would then recalculate the subtotal.

Charlotte Foust 

-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of
Johncliviger at aol.com
Sent: Monday, July 28, 2008 1:51 AM
To: dba-vb at databaseadvisors.com
Subject: [dba-VB] VB2005 DatagridView with unbound calculated fields

Hi All
 
I have a form with a parent and child grids. On the child grid I have 2
unbound calculated fields. And everything works fine. What I need to do
is add a subtotal field for 1 of the calculated fields. And the subtotal
to appear  in a textbox on the form for each parent.
 
Anyone seen this before? Any sites that may explain how to do it?
 
TIA
johnc
 
 
 
 



   
_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com





More information about the dba-VB mailing list