One Dataprovider For Many Cgridview

Hi!

For a customer, I have many business including many product. To limit connection to my database, I generate a dataprovider (with CSqlDataProvider) to get all my businesses. After that, I would like to create one CgridView per business code.

Is it possible to add a condition in a Cgridview (I want to display my dataprovider where businessCode=‘XXXX’) or should I create one dataprovider by cgridview?

Thanks!

You can try


'value'=>'($data->gender=="M")?"Male":"Female"',

You give me a solution to create a condition on a cell. I would like to create a condition on a line: if this line deal about business XXXX, i display it in my Cgridview, if not, this line is not displayed.

bump