首页 > 解决方案 > How to remove repetitive rows from kartik GridView?

问题描述

Is it possible to remove repetitive rows from Kartik GridView. The table have repetitive data. But I don't want to show them all in grid. How can I solve this issue?

标签: phpgridviewyii2kartik-v

解决方案


正如@muhammad-omer-aslam 所说,您应该检查查询以删除重复的行,可能在所需列上使用 GROUP BY 或 DISTINCT。

Kartik GridView 无法自动为您执行此操作。


推荐阅读