php - 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?
解决方案
正如@muhammad-omer-aslam 所说,您应该检查查询以删除重复的行,可能在所需列上使用 GROUP BY 或 DISTINCT。
Kartik GridView 无法自动为您执行此操作。
推荐阅读
- asp.net-core - 如何设置多个HttpContext.Session.SetObjectAsJson
- reactjs - 警告:在渲染不同的组件(`Cart`)时无法更新组件(`ConnectFunction`)
- excel - 如何根据 Excel 中的另一列值对列值应用限制
- python - 循环遍历映射表中的参数(PYTHON、DATA FRAME)
- apache-kafka - confluent-kafka Python 库 consumer.poll(timeout) 无法按预期工作
- node.js - 如何将 Strapi 后端和 ReactJS 前端部署到单个 Heroku 应用程序
- git - 如果我对克隆的存储库进行了更改,如何进行拉取请求?
- unit-testing - 使用 VS Code 运行 ASP .Net 核心应用程序的 NUnit 测试用例
- python - PI3D 纹理导入的 obj 模型,就好像它是一个高程图
- javascript - 如何将通过浏览器上传的文件转换为字节?