开发者

how to ignore duplicate record in a datagrid?

开发者 https://www.devze.com 2023-03-03 13:59 出处:网络
开发者_运维技巧how to ignore duplicate record in a datagrid? and how can i check duplicate record in datagrid...i am using ArrayCollection as a dataprovider to datagrid...There is no way datagrid itse
开发者_运维技巧

how to ignore duplicate record in a datagrid? and how can i check duplicate record in datagrid...i am using ArrayCollection as a dataprovider to datagrid...


There is no way datagrid itself can do it. I do not know where you get the data, if you cannot avoid getting duplicates being filled/load to arraycollection at first place, I would just remove duplicate records manually from arraycollection before setting to datagrid. If you cannot change the arraycollection, you can do it by creating filterFunction (will look for the item in arraycollection with lower index or so...).

0

精彩评论

暂无评论...
验证码 换一张
取 消