Why I can't write in dbedit and...

I have form consist of DataSource ,4dbedit,Dbgrid ,IBquery
datasource1 datset property = IBquery
Datagrid datasource property = datasource1
dbedit datasource property =datasource1
dbedit  datafield property is one of the selected field in Ib query
when I select any Record in dbgrid it appears in the 4 dataedits but i can't write in dbedit
the questions are
 1-  Why can't I rewrite Or delete value in dbedit (to modify my table) knowing that readonly propert for Dbedit =false


2- when I add any record to db table the new Record doesn't appear in dbgrid (Dbgrid.refresh is found in addbutton)
sraab2004Asked:
Who is Participating?
 
mokuleConnect With a Mentor Commented:

All right then. It was only rhetorical question.
IBQuery IS readonly dataset.
To allow database update it must cooperate with TIBUpdateSQL.
0
 
mokuleCommented:

You can't type in DBEdit or Your changes are not saved ?
0
 
Ivanov_GCommented:

   DBEdit.DataSource.DataSet.Edit;

   now you can write ...
   if you want to save the changes
   DBEdit.DataSource.DataSet.Post;
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
sraab2004Author Commented:
I can't type in dbedit
0
 
sraab2004Author Commented:
for Ivanov Where should I put your code ?
0
 
mokuleCommented:
You can't type if your dataset is readonly or DBEdit.DataField is Lookup or calculated.
Is it any of this cases?
0
 
mokuleCommented:
Ivanov:
Edit mode should be entered automatically when he tried type.
So I don't think it solves problem
0
 
Ivanov_GCommented:

   somewhere before you try to type in the DBEdit.

   also make sure your datasets, datafields are properly assigned...
0
 
sraab2004Author Commented:
no solution works the problem still present
0
 
mokuleCommented:
There were no solutions.
Answer my questions.
Is your dataset readonly?
Is DBEdit.DataField Lookup or calculated?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.