Spread 8.0 Documentation
DAutoSave Property
Support Options
ActiveX Reference > ActiveX Properties > DAutoSave Property

Glossary Item Box

DAutoSave Property


See Also    Example

Applies To

fpSpread control

Description

Sets or returns whether a bound sheet automatically writes modified records to the database.

Syntax

C++

BOOL CSpreadSheet::GetDAutoSave( );
void CSpreadSheet::SetDAutoSave(BOOL value);

Visual Basic

[form.]fpSpread.DAutoSave[ = boolean%]

Remarks

The default value for the DAutoSave property is True.

This setting is applied to the entire workbook, including all sheets in the control.

When the DAutoSave property is set to True, the modified record in the sheet is written back to the database automatically each time the active cell leaves a row in which any data has been modified. When the DAutoSave property is set to False, the modified record is not written to the database, and you must use the DataSave method to save the modified record.

The setting of the DAutoSave property affects whether the sheet sets the DataChanged property after data has been changed in the sheet.

This property is valid only when the sheet is bound to a database.

Spread Designer

Choose the Sheet menu, and then the Data Binding menu, and then select the Automatically Save Data check box in the Data Binding Settings dialog box.

Data Type

Integer (Boolean)

See Also

Specifying Sheet and Database Interaction

DataChanged, DInformActiveRowChange properties

DataSave method

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.