I see only rowCssClassExpression 'in CGridView) which is intended, as far as I understood, to create new css class for each row.
But what I would like is to create a Css "id" for each row of the CGridView, which would encompass the keys of the data provided by the CActiveDataProvider
I think it would be very easy to achive this but I can’t …
I don’t think this is good (eficient)… if there would be 1000 rows you would get 1000 css id’s…
rowCssClassExpression is not meant to create a new class for each row… it’s used to choose a class for the row depending on the result of the expression… for example odd/even or if you have a negative value to color that row in red… or something like that…
Problem is not to have 1000 rows. You repeat some code throughout those 1000 rows. Moreover you never display 1000 rows.
but paginate them.
When for instance you want to select a row by clicking on it, (not on a specific cell i mean) you may want to display a particular id to display in a view description of this article (based on the id)
In javascript you may want to retreive this Id. Much more efficient to retreive it directly from the id row.
I can imagine I’m wrong in my point of view and enought open minded to listen your explain and accept them …