Click here to Skip to main content
15,903,856 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all.

I have two forms
1.Items:- This contains a gridview and one button Add Item
2.Add Items:- This contains input screen to insert items

Whenever I click to Add Item button in Items screen it will open second screen i.e. Add Items, where I have filled data and click to save.

Data will save to database and form will be closed..

after that I would like to refresh my Datagridview which is on first form...

please help me for that.
Posted
Comments
Krunal Rohit 13-Oct-15 9:01am    
Is it ASP or winform ?

-KR

Well, Ignore my comment. I did't see the "windows" in the subject of your question. :laugh:

See this thread:
http://stackoverflow.com/questions/2395624/how-to-refresh-datagridview-when-closing-child-form[^]

-KR
 
Share this answer
 
Please see my article written to answer such questions in a general way: Many Questions Answered at Once — Collaboration between Windows Forms or WPF Windows[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900