Datagrid doesn't completely refresh

  • Thread starter Thread starter Eugene
  • Start date Start date
E

Eugene

Hi all,

Probably an easy question, but I'm kinda stuck.
Here's the scenario - I have a datagrid with, let's say, 10 rows. Now,
if I click on a cell in 10th row, and then update underlying DataView
to contain only 5 rows - the content of a clicked cell remains visible,
even though the rest of a datagrid is updated. If I click on that cell
again - then it refreshes.
Purely cosmetic bug, but still..
Any ideas ?

Thanks.
 
Hi,

Eugene said:
Hi all,

Probably an easy question, but I'm kinda stuck.
Here's the scenario - I have a datagrid with, let's say, 10 rows. Now,
if I click on a cell in 10th row, and then update underlying DataView
to contain only 5 rows - the content of a clicked cell remains visible,
even though the rest of a datagrid is updated. If I click on that cell
again - then it refreshes.

This problem has appeared before on the newsgroups and had mostly to do with
readonly DataGridColumnStyle's ...

It may help if you either don't use readonly DataGridColumnStyle's or call
DataGrid.Select() just before changing the underlying DataView .

HTH,
Greetings
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top