dropDownList default selection

Hi,

I was wondering if there was an easy way to set the default selection on a dropDownList in a CActiveForm from the array that you pass it. Right now I’m sending a value=>label array. I know you can set the Options for a given value but could I pass that in the array as array(value, label, ‘options’=>array(‘selected’=>true))? Basically can I do it when I create the array for the list?

Thanks for your help,

-Nazum

bump

There is no way to do it through the CHtml::listData() method, http://www.yiiframework.com/doc/api/1.1/CHtml#listData-detail explains what can be done.