Checkbox Always Checked

Hi All,

I am having a CActive.checkBox for making a user active/inactive.

When i uncheck the checkbox the user becomes inactive and it is reflected in database, but still my checkbox for that user shows checked when i comes back to the page.

I have defined active field as tinyint(1), default value is 1

Can you post the code that generates the checkboxes?

Are you using one of the CHtml Yii Ajax helpers? If yes, you should set the return property to true