我想在DBGrid中修改数据并且更新数据文件,但是Dataset readonly,怎么解决呢?
dataset使用的TQuery,sql语句是:
select
studentid,
name,
graduateschool,
department,
schoolinglength,
graduatetype,
releasedate,
modifyman
from stu
where studentid='1'
把TQuery.RequestLive:=true,而且database组件的readonly是false,
但是每当TQuery.Edit时,却提示dataset是readonly的,没办法在DBGrid里修改