refresh datagridview

Posts   
 
    
Posts: 18
Joined: 26-Jun-2006
# Posted on: 30-Aug-2006 04:55:22   

Hi,

I have 2 forms A, and B. Form A has a datagridview that display entity rows, also a bottom to call form B and insert a new entity row, after new new record is added using form B, I need to refresh programatically datagridview on fotm A, so once form B is closed, my client will see the new row on form A.

I have tried but still I dont know to do it.

PCould somebody give me a clue.

Thanks,

Carlos

Walaa avatar
Walaa
Support Team
Posts: 14987
Joined: 21-Aug-2005
# Posted on: 30-Aug-2006 08:21:44   

When closing your child form, you need to call a method on your ParentForm to re-fetch the data deom the database. Use the ParentForm property of your child form to access its parent form, then you should access a public method which refresh everything (re-fetch data).