Wpf datagrid事件监听绑定更改

时间:2018-06-06 17:14:22

标签: c# wpf

每次绑定到ItemsSource的属性发生更改时,如何配置datagrid来触发事件?

1 个答案:

答案 0 :(得分:1)

我刚刚这样做了:

CREATE TEMPORARY TABLE tmptable_1 SELECT * FROM table WHERE primarykey = 1;
UPDATE tmptable_1 SET primarykey = NULL;
INSERT INTO table SELECT * FROM tmptable_1;
DROP TEMPORARY TABLE IF EXISTS tmptable_1;