SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.commit  method

Commit row editing and transfer the entered data to connected DataSet. If committed normally, it will return true. If it is not editing state or throws an except and raiseFailError is false, it will return false

If parameter force is true, it will unconditionally transfer the data to dataset, and if it is false, it will transfer only when the data is changed actually. 

function commit (force: Boolean, raiseFailError: Boolean): Boolean;
Returns
Boolean
Parameters
force - Boolean. required.
raiseFailError - Boolean. required.
Code -1
    $('#commit').click(function () {
        grid.commit(true);
    });
See Also
cancel
commitEditor
cancelEditor
Examples
Cell Editing