Hi!
I have a datagrid connected to a dataenvironment and 3 text boxes at the bottom of the columns locked to the aggregate totals datamember showing the totals of each column.
When I type a change in one of the datagrid cells, the aggregate totals in the text boxes dont change unless I restart the application. The actual database and the rsCommand recordset does change OK but the aggregate totals do not. I tried all the usual requerys and refreshes on the dataenvironment and the rsTotalRecordset and the text boxes I could find but to no avail.
I can get the totals text boxes to work if I make them unbound boxes and feed them with fields from the aggregate recordset when the row/col changes.
I didnt want to use unbound totals boxes if at all possible as it means more code when you show the form. The dataenvironment should be a nice and clean way of doing it - I hope!
Regards Ted
I have a datagrid connected to a dataenvironment and 3 text boxes at the bottom of the columns locked to the aggregate totals datamember showing the totals of each column.
When I type a change in one of the datagrid cells, the aggregate totals in the text boxes dont change unless I restart the application. The actual database and the rsCommand recordset does change OK but the aggregate totals do not. I tried all the usual requerys and refreshes on the dataenvironment and the rsTotalRecordset and the text boxes I could find but to no avail.
I can get the totals text boxes to work if I make them unbound boxes and feed them with fields from the aggregate recordset when the row/col changes.
I didnt want to use unbound totals boxes if at all possible as it means more code when you show the form. The dataenvironment should be a nice and clean way of doing it - I hope!
Regards Ted