开发者

Detecting the index of datagrid row affected by change in dataprovider(array collection)

开发者 https://www.devze.com 2023-02-11 05:49 出处:网络
I have an array collection as the dataprovider to a datagr开发者_运维技巧id. When I change a value in the arraycollection, a particular row gets updated in the datagrid. I want to get the index of tha

I have an array collection as the dataprovider to a datagr开发者_运维技巧id. When I change a value in the arraycollection, a particular row gets updated in the datagrid. I want to get the index of that particular row. How do I get it?


You have to store the datagrid's current dataprovider in a temp variable and then compare it with the new dataprovider. Make sure that the temp variable isnt bindable.

0

精彩评论

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