Multi Select Dropdownlist Preselection

I would like to fill the CHTML::dropDownList with preselected values depending on the model.

So if there exists an ActiveRecord (with status >active<) for the value, the value should become selected as well as when I am deselecting a value

in the dropDownList, the status of the specific record should become >inactive<.

Do you guys know a clean way to realize that?

search the Yii docs for dropDownList using an array() for the options. There are many examples on how to use it for Yes/No, Male/Female, etc for GridView filtering and form entry.