query的requestlive属性必须设为true,同时设定dbgrid为可写;则在dbgrid中输入数据后可直接保存(不需要代码操作)