开发者

how to ignore duplicate record in a datagrid?

开发者_运维技巧

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜