WPF DataGrid行选择缓慢 [英] WPF DataGrid Row Selection slow

查看:359
本文介绍了WPF DataGrid行选择缓慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我需要有关WPF dataGrid选择的帮助.
当我在dataGrid中选择一行时,我正在执行存储过程.
这使行选择非常慢.

现在,我只想在300毫秒内不选择另一行的情况下执行存储过程.

我该怎么办?
我尝试了Timer和Thread,但无法使其正常工作

在此先感谢您!

Hello,

I need help with the WPF dataGrid Selection.
When I select a row in the dataGrid I''m executing a stored procedure.
This makes the row selection very slow.

Now I want to execute the stored procedure only if I do not select an other row during 300ms.

How can I do this?
I tried Timer and Thread, but couldn''t make it work

Thanks in advance!!!

推荐答案

如果这是您唯一的信息,我建议您在选择单元格之前进行计算....

如果您还有其他信息,请阅读代码或该过程的说明,请使用改进问题"按钮并添加其他信息.
If this is your only information to us I would suggest that you perform your calculation before you select the cells....

If you have additional information read code or explanation of the prosedure, please use the Improve Question button and add aditional information.


这篇关于WPF DataGrid行选择缓慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆