How to repaint a form which doesn't have focus?

G

Guest

I have 2 different forms bound to the same DataView.

The first form has a datagrid displaying the data. The 2nd form is used to edit the data. When the data is changed in the edit form, I call Invalidate, Update, and Refresh on both the datagrid and the entire datagrid form. The data displayed by the datagrid doesn't change. However, if I give focus to the datagrid form, or just cover it up with another window and then uncover it, the data updates correctly.

Is there a way to repaint the datagrid form when it doesn't have focus?

Thanks...

Dave
 
G

Guest

Ignore this post - was operator error. I was calling Invalidate, etc. too soon before the data had changed.

All is OK.

----- Dave wrote: -----

I have 2 different forms bound to the same DataView.

The first form has a datagrid displaying the data. The 2nd form is used to edit the data. When the data is changed in the edit form, I call Invalidate, Update, and Refresh on both the datagrid and the entire datagrid form. The data displayed by the datagrid doesn't change. However, if I give focus to the datagrid form, or just cover it up with another window and then uncover it, the data updates correctly.

Is there a way to repaint the datagrid form when it doesn't have focus?

Thanks...

Dave
 

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

Top