Datagridview selection, maybe bug?

0 Answers 28 Views
GridView
Peter
Top achievements
Rank 1
Iron
Iron
Peter asked on 25 Dec 2021, 06:19 AM

Dear Support,

I noticed one strange thing with radgridview, under WPF (see the screenshot below)

This is a complex production planner screen, and as far as i just click the cells with mouse it works perfectly. But when i use the arrow keys to navigate between cells two thing can happen:

1. If i push less frequently the actual cell switches without problem.

2. If i push quicker, or if i hold the button the grid leaves random selected cells behind.

There are a few things in the SelectedCellsChanged event, which runs in ~200ms. This 200ms is mostly an SQL query, i run it each time to fill some other fields based on the selected cell. As i guess: if i switch faster than this, the bug appears, if i select slower than this, then it switches the cell without any problem. 

Do you have any advice how can i solve this? I tried to put .unselectall after each, but it just made it worse.

Thanks

Peter

 

 

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Peter
Top achievements
Rank 1
Iron
Iron
Share this question
or