Set the max-width of a gridview column filter

Hello everbody,

i will change the max-width of the filter column in a gridview.

I can do this with ‘contentOptions’. But i use a data filter in the gridview, and this will not be set to the max-width. Is there any way to configuration the column width of a filter cell?

headerRowOptions?

https://www.yiiframework.com/doc/api/2.0/yii-grid-gridview

headerRowOptions will only change the tr tag from thead but not the specify cell i need

I’ll found it. thank you Tommy. I must add headerOptions to the column preferences. No it works :slight_smile: