Unable to update the value in database using TDBCheckbox

121 Views Asked by At

I am using Delphi XE6 IDE and sql server database.I have placed a TDBCheckbox component on a TPanel. The datasource to TDBCheckbox is set at runtime. The datafield value is assigned to the component. In clientdataset this field is added. When the TDBCheckbox is check to 'True'.The value is not getting saved in the database.

Also, I tried using the same TDBChecbox on a form outside this panel.It updates the values in database.

The expected result is, if the required datasource is assigned to the TDBCheckbox.Then the value should get updated in database. Can anyone assist me on this?

0

There are 0 best solutions below