yii2 gridview filter exact value

To filter the exact value in Yii2 GridView, you can use the filterInputOptions property of the DataColumn class. Here's an example:

    'attribute' => 'attribute_name',
    'filter' => Html::activeTextInput($searchModel, 'attribute_name', ['class' => 'form-control']),
    'filterInputOptions' => ['class' => 'form-control', 'autocomplete' => 'off'],

In the above code snippet, replace 'attribute_name' with the actual attribute name you want to filter. This will create a text input field in the GridView filter row, allowing you to enter an exact value for filtering.

Please note that you need to replace 'form-control' with the appropriate CSS class for styling the input field.

I hope this helps! Let me know if you have any further questions.